Nikita Timofeev created CAY-2711:
------------------------------------

             Summary: JDK 17 compatibility
                 Key: CAY-2711
                 URL: https://issues.apache.org/jira/browse/CAY-2711
             Project: Cayenne
          Issue Type: Task
         Environment: JDK 17
            Reporter: Nikita Timofeev
            Assignee: Nikita Timofeev
             Fix For: 4.2.B1


Java 17 EA builds are available for some time and the GA version to be released 
relatively soon, so we need to track and fix problems with it.

For now, there are two know issues:
 # Gradle plugin, we can't fix it for now as Gradle itself doesn't support Java 
17, see [docs|https://docs.gradle.org/current/userguide/compatibility.html].
 # Protostuff module has some issues related to java modules

{code}
java.lang.ExceptionInInitializerError
        at 
org.apache.cayenne.rop.protostuff.ProtostuffROPSerializationTest.testColumnQuerySerialization(ProtostuffROPSerializationTest.java:119)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field 
private final java.lang.Object java.util.Collections$SingletonSet.element 
accessible: module java.base does not "opens java.util" to unnamed module 
@2ef0d60d
        at 
org.apache.cayenne.rop.protostuff.ProtostuffROPSerializationTest.testColumnQuerySerialization(ProtostuffROPSerializationTest.java:119)
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to