JDK-8340323 : Test jdk/classfile/OptionsTest.java fails after JDK-8340200
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-17
  • Updated: 2024-09-23
  • Resolved: 2024-09-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b16Fixed
Related Reports
Relates :  
Description
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

Comments
Changeset: 5dc9723c Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-09-17 18:13:54 +0000 URL: https://git.openjdk.org/jdk/commit/5dc9723c8172e288872f744bac5fd2342475767a
17-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21044 Date: 2024-09-17 17:51:19 +0000
17-09-2024

This appears to be a regression caused by: JDK-8340200 Misspelled constant `AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES`
17-09-2024