-
Bug
-
Resolution: Unresolved
-
P4
-
24
-
x86_64
-
windows
The following three javac tests failed in the JDK24 CI:
tools/javac/tree/NewClassDefEnclosing.java
tools/javac/processing/errors/TestReturnCode.java
tools/javac/patterns/SOEDeeplyNestedBlocksTest.java
All three tests have failures like this one from NewClassDefEnclosing.jtr:
#section:main
----------messages:(8/379)----------
command: main NewClassDefEnclosing
reason: Assumed action based on file name: run main NewClassDefEnclosing
started: Tue Oct 08 07:23:09 UTC 2024
Mode: agentvm
Agent id: 19
Additional exports to unnamed modules from @modules: jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.tree
finished: Tue Oct 08 07:23:09 UTC 2024
elapsed time (seconds): 0.078
----------configuration:(14/1266)*----------
<snip>
----------System.err:(7/854)----------
/Test.java:1: error: reached end of file while parsing
public class Test {O.I i = new O().new I(1, "2") {}; class O { class I { public I(int i, String s) { } }}
^
java.lang.RuntimeException
An exception has occurred in the compiler (24-ea). Please file a bug against the Java compiler via the Java bug reporting page (https://bugreport.java.com) after checking the Bug Database (https://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
java.lang.NoClassDefFoundError: Could not initialize class java.lang.StackTraceElement$HashedModules
java.lang.NoClassDefFoundError: Could not initialize class java.lang.StackTraceElement$HashedModules
result: Failed. Execution failed: `main' threw exception: java.lang.NoClassDefFoundError: Could not initialize class java.lang.StackTraceElement$HashedModules
test result: Failed. Execution failed: `main' threw exception: java.lang.NoClassDefFoundError: Could not initialize class java.lang.StackTraceElement$HashedModules
tools/javac/tree/NewClassDefEnclosing.java
tools/javac/processing/errors/TestReturnCode.java
tools/javac/patterns/SOEDeeplyNestedBlocksTest.java
All three tests have failures like this one from NewClassDefEnclosing.jtr:
#section:main
----------messages:(8/379)----------
command: main NewClassDefEnclosing
reason: Assumed action based on file name: run main NewClassDefEnclosing
started: Tue Oct 08 07:23:09 UTC 2024
Mode: agentvm
Agent id: 19
Additional exports to unnamed modules from @modules: jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.tree
finished: Tue Oct 08 07:23:09 UTC 2024
elapsed time (seconds): 0.078
----------configuration:(14/1266)*----------
<snip>
----------System.err:(7/854)----------
/Test.java:1: error: reached end of file while parsing
public class Test {O.I i = new O().new I(1, "2") {}; class O { class I { public I(int i, String s) { } }}
^
java.lang.RuntimeException
An exception has occurred in the compiler (24-ea). Please file a bug against the Java compiler via the Java bug reporting page (https://bugreport.java.com) after checking the Bug Database (https://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
java.lang.NoClassDefFoundError: Could not initialize class java.lang.StackTraceElement$HashedModules
java.lang.NoClassDefFoundError: Could not initialize class java.lang.StackTraceElement$HashedModules
result: Failed. Execution failed: `main' threw exception: java.lang.NoClassDefFoundError: Could not initialize class java.lang.StackTraceElement$HashedModules
test result: Failed. Execution failed: `main' threw exception: java.lang.NoClassDefFoundError: Could not initialize class java.lang.StackTraceElement$HashedModules