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

Could not access source collection field in java.util.Collections$UnmodifiableCollection #138

Open
amy-b-cheng opened this issue Mar 25, 2024 · 0 comments

Comments

@amy-b-cheng
Copy link

My application was previously using JDK 11, kryo 5.5.0, and kryo-serializers 0.45.

When I upgrade to JDK 21, I'm getting the following error:
java.lang.RuntimeException: Could not access source collection field in java.util.Collections$UnmodifiableCollection. at de.javakaffee.kryoserializers.UnmodifiableCollectionsSerializer.<clinit>(UnmodifiableCollectionsSerializer.java:62)
and
java.lang.reflect.InaccessibleObjectException: Unable to make field final java.util.Collection java.util.Collections$UnmodifiableCollection.c accessible: module java.base does not "opens java.util" to unnamed module @18acfe88

Is this a known problem with JDK 21?

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

No branches or pull requests

1 participant