You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building cucumber-jvm with Java 17 using mvn clean install:
Exception 0 :
org.jboss.weld.exceptions.WeldException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @62bd2070
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:294)
at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:248)
Upgrading Weld to the latest supported by deltaspike-cdictrl-api results in:
Nov 27, 2022 7:04:28 PM org.jboss.weld.bootstrap.WeldStartup <clinit>
INFO: WELD-000900: 3.1.3 (Final)
java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @704d6e83
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.Method.checkCanSetAccessible(Method.java:199)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
at org.jboss.weld.util.bytecode.ClassFileUtils$1.run(ClassFileUtils.java:88)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
at org.jboss.weld.util.bytecode.ClassFileUtils.makeClassLoaderMethodsAccessible(ClassFileUtils.java:64)
📚 Any additional context?
This is currently blocking the use of Java 17 to build the project which is required for #2644.
The text was updated successfully, but these errors were encountered:
👓 What did you see?
When building
cucumber-jvm
with Java 17 usingmvn clean install
:Upgrading Weld to the latest supported by
deltaspike-cdictrl-api
results in:📚 Any additional context?
This is currently blocking the use of Java 17 to build the project which is required for #2644.
The text was updated successfully, but these errors were encountered: