Skip to content

Handle kotlin / JVM erasure of types - #1295

Merged
rozza merged 2 commits into
mongodb:masterfrom
rozza:JAVA-5292
Jan 24, 2024
Merged

rozza merged 2 commits into
mongodb:masterfrom
rozza:JAVA-5292

Conversation

@rozza

@rozza rozza commented Jan 16, 2024

Copy link
Copy Markdown
Member

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

@vbabanin vbabanin left a comment

Copy link
Copy Markdown
Member

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
@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

Development

Successfully merging this pull request may close these issues.

2 participants