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

runtime/sealedClasses/GetPermittedSubclassesTest.java fails w/ jdk17

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b01

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: