Skip to content

Conversation

@madhead
Copy link
Contributor

@madhead madhead commented Mar 4, 2023

Creating a test for this one would be tricky as it would require compiling the library with Java 9+ and running a single test on Java 8.

Instead of that one could use the minimal reproducible example repository (https://github.com/madhead/kotlinx-serialization-json-java8) to validate a fix locally 😅

@madhead madhead force-pushed the issues/2218-cast branch from ade34f2 to 0605639 Compare March 4, 2023 00:38
@madhead madhead force-pushed the issues/2218-cast branch from 0605639 to fda2163 Compare March 7, 2023 22:54
@madhead madhead force-pushed the issues/2218-cast branch from fda2163 to 4977da4 Compare March 7, 2023 22:55
@madhead madhead requested a review from shanshin March 7, 2023 22:56
Copy link
Contributor

@shanshin shanshin left a comment

Choose a reason for hiding this comment

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

Thanks for the research!

@shanshin shanshin merged commit abb8afc into Kotlin:dev Mar 8, 2023
sandwwraith pushed a commit that referenced this pull request Aug 2, 2023
There are 7 methods in ByteBuffer that have the problem described in #2218 and was attempted to be fixed in #2219.
Unfortunately, the fix in #2219 was incomplete as another of these 7 methods is used in the same class.
Also it could happen anytime and with similar cases, that this happens again and is only recognized very late.
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