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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2218: NoSuchMethodError when parsing a JSON stream on Java 8 #2219

Merged
merged 1 commit into from Mar 8, 2023

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 馃槄

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.

None yet

2 participants