Closed stephankoelle closed 1 year ago
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field jdk.internal.ref.PhantomCleanable jdk.internal.ref.PhantomCleanable.prev accessible: module java.base does not "opens jdk.internal.ref" to unnamed module @1ce92674
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:361) [java.base:]
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:301) [java.base:]
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177) [java.base:]
at java.base/java.lang.reflect.Field.setAccessible(Field.java:171) [java.base:]
at org.github.jamm.MemoryMeterBase.declaredClassFields0(MemoryMeterBase.java:241) [jamm-0.4.0.jar:0.4.0-SNAPSHOT]
... 83 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InaccessibleObjectException: Unable to make field final jdk.internal.loader.URLClassPath jdk.internal.loader.ClassLoaders$AppClassLoader.ucp accessible: module java.base does not "opens jdk.internal.loader" to unnamed module @164642a4
at org.github.jamm.MemoryMeterBase.declaredClassFields0(MemoryMeterBase.java:246)
at org.github.jamm.MemoryMeterBase.access$0(MemoryMeterBase.java:223)
at org.github.jamm.MemoryMeterBase$1.computeValue(MemoryMeterBase.java:24)
at org.github.jamm.MemoryMeterBase$1.computeValue(MemoryMeterBase.java:1)
at org.github.jamm.MemoryMeterBase.declaredClassFields(MemoryMeterBase.java:219)
at org.github.jamm.MemoryMeterBase.measureDeep(MemoryMeterBase.java:119)
... ? more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field final jdk.internal.loader.URLClassPath jdk.internal.loader.ClassLoaders$AppClassLoader.ucp accessible: module java.base does not "opens jdk.internal.loader" to unnamed module @164642a4
at org.github.jamm.MemoryMeterBase.declaredClassFields0(MemoryMeterBase.java:241)
Thanks for reporting this problem. This problem is now fixed.
The JVM (openjdk 15) sometimes has internal PhantomCleanable those throw an exception