canonical / openjdk-21-crac

OpenJDK 21 with CRaC support. This repository hosts CRaC patches from https://github.com/openjdk/crac backported to jdk21u.
GNU General Public License v2.0
0 stars 0 forks source link

JTReg failure: jdk/internal/jrtfs/Basic.java #3

Open pushkarnk opened 4 months ago

pushkarnk commented 4 months ago

This looks like a crac-related failure. JTR attached.

Caused by: java.lang.IllegalAccessException: class jdk.internal.jimage.BasicImageReader cannot access class jdk.internal.crac.Core$Priority (in module java.base) because module java.base does not export jdk.internal.crac to unnamed module @1fef4e41
    at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:394)
    at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:714)
    at java.base/java.lang.reflect.Method.invoke(Method.java:571)
    at jdk.internal.jimage.BasicImageReader.registerIfCRaCPresent(BasicImageReader.java:181)

Basic.jtr.txt

xnox commented 2 weeks ago

Can this be solved with java options to add exports?