Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8258054

runtime/sealedClasses/GetPermittedSubclassesTest.java fails w/ jdk17

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 17
    • 17
    • hotspot
    • b01

      runtime/sealedClasses/GetPermittedSubclassesTest.java fails in jdk/jdk after we switched to jdk17:

      java.lang.RuntimeException: Class SubClass got unexpected exception: SubClass (class file version 60.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 61.65535
      at GetPermittedSubclassesTest.testBadSealedClass(GetPermittedSubclassesTest.java:103)
      at GetPermittedSubclassesTest.main(GetPermittedSubclassesTest.java:138)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

            iignatyev Igor Ignatyev (Inactive)
            iignatyev Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: