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

Test jdk/classfile/OptionsTest.java fails after JDK-8340200

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 24
    • 24
    • core-libs

      In the rename for a bad enum in a preview class, an associated tier 1 test isn't updated, causing tier 1 test failures.

      Here's the log file snippet for the compile error:

      #section:compile
      ----------messages:(8/648)----------
      command: compile /opt/mach5/mesos/work_dir/jib-master/install/jdk-24+16-1750/src.full/open/test/jdk/jdk/classfile/OptionsTest.java
      reason: .class file out of date or does not exist
      started: Tue Sep 17 16:54:35 UTC 2024
      Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.classfile.impl=ALL-UNNAMED --add-exports java.base/jdk.internal.classfile.impl.verifier=ALL-UNNAMED --add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED --add-exports java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED
      Mode: agentvm
      Agent id: 3
      finished: Tue Sep 17 16:54:35 UTC 2024
      elapsed time (seconds): 0.077
      ----------configuration:(15/1570)----------

      <snip>

      ----------direct:(10/830)----------
      /opt/mach5/mesos/work_dir/jib-master/install/jdk-24+16-1750/src.full/open/test/jdk/jdk/classfile/OptionsTest.java:65: error: cannot find symbol
                      ClassFile.of(ClassFile.AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES).transformClass(
                                                                       ^
        symbol: variable DROP_UNSTABLE_ATRIBUTES
        location: class AttributesProcessingOption
      Note: /opt/mach5/mesos/work_dir/jib-master/install/jdk-24+16-1750/src.full/open/test/jdk/jdk/classfile/OptionsTest.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      Note: /opt/mach5/mesos/work_dir/jib-master/install/jdk-24+16-1750/src.full/open/test/jdk/jdk/classfile/OptionsTest.java uses preview features of Java SE 24.
      Note: Recompile with -Xlint:preview for details.
      1 error
      result: Failed. Compilation failed: Compilation failed

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: