Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle kotlin / JVM erasure of types #1295

Merged
merged 2 commits into from Jan 24, 2024
Merged

Handle kotlin / JVM erasure of types #1295

merged 2 commits into from Jan 24, 2024

Conversation

rozza
Copy link
Member

@rozza rozza commented Jan 16, 2024

It has been observed that the Kotlin can behave
differently during reflection and return Type where normally it would report the correct type.

Checking for erasure allows the bson-kotlin library to handle these cases and return the expected type.

JAVA-5292

It has been observed that the Kotlin can behave
differently during reflection and return Type<Object>
where normally it would report the correct type.

Checking for erasure allows the bson-kotlin library to handle
these cases and return the expected type.

JAVA-5292
@rozza rozza requested review from a team and vbabanin and removed request for a team January 16, 2024 14:48
Copy link
Member

@vbabanin vbabanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rozza rozza merged commit 0d8cc80 into mongodb:master Jan 24, 2024
60 checks passed
@rozza rozza deleted the JAVA-5292 branch January 24, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants