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

Kryo generates InaccessibleObjectException - Make Dependencies "Java 17 compatible" #304

Open
nschlimm opened this issue Sep 30, 2022 · 0 comments

Comments

@nschlimm
Copy link

nschlimm commented Sep 30, 2022

I am using my Project barbelhisto-core here in github in a JDK 17 environment.
My tests are failing cause some Kryo Serializers use setAccessible by default.

de.javakaffee.kryoserializers.ArraysAsListSerializer

This results in an exception:

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.Object[] java.util.Arrays$ArrayList.a accessible: module java.base does not "opens java.util" to unnamed module @50b494a6
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at de.javakaffee.kryoserializers.ArraysAsListSerializer.(ArraysAsListSerializer.java:45)

Is there a plan to support Java 17 and above environments?

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