Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2711

JDK 17 compatibility

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2.RC1
    • None
    • None
    • JDK 17

    Description

      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:

      1. Gradle plugin, we can't fix it for now as Gradle itself doesn't support Java 17, see docs.
      2. Protostuff module has some issues related to java modules
      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)
      

      Attachments

        Issue Links

          Activity

            People

              ntimofeev Nikita Timofeev
              ntimofeev Nikita Timofeev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m