[
https://issues.apache.org/jira/browse/CAY-2711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456228#comment-17456228
]
Nikita Timofeev commented on CAY-2711:
--------------------------------------
Protostuff fix: https://github.com/apache/cayenne/pull/476
> 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
> Priority: Major
> Fix For: 4.2.B2
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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.20.1#820001)