-
Bug
-
Resolution: Fixed
-
P2
-
23, 24
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8337381 | 23.0.2 | Tobias Hartmann | P2 | Resolved | Fixed | b01 |
JDK-8337924 | 23.0.1 | Tobias Hartmann | P2 | Resolved | Fixed | b06 |
JDK-8334020 | 23 | Cesar Soares | P2 | Resolved | Fixed | b32 |
ArrayCreationTree.java fails intermittently with the following exception when the JVM is configured with -XX:-UseCompressedOops (only seen on Linux Aarch64 so far):
An exception has occurred in the compiler (23-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.NullPointerException: Cannot read field "head" because "this.elems" is null
at jdk.compiler/com.sun.tools.javac.util.ListBuffer.first(ListBuffer.java:190)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.merge(JavacParser.java:1270)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.foldIfNeeded(JavacParser.java:1254)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.foldStrings(JavacParser.java:1232)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term2Rest(JavacParser.java:1208)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:1122)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:1090)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:1046)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:1026)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:891)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:2249)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classCreatorRest(JavacParser.java:2699)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.creator(JavacParser.java:2594)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1439)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:1119)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:1090)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:1046)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:1026)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:891)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseSimpleStatement(JavacParser.java:3098)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2847)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2784)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2754)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2768)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseSimpleStatement(JavacParser.java:2998)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2847)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2809)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseSimpleStatement(JavacParser.java:3002)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2847)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2784)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2754)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2768)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.methodDeclaratorRest(JavacParser.java:4936)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.constructorOrMethodOrFieldDeclaration(JavacParser.java:4733)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classOrInterfaceOrRecordBodyDeclaration(JavacParser.java:4658)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classInterfaceOrRecordBody(JavacParser.java:4597)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classDeclaration(JavacParser.java:4297)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classOrRecordOrInterfaceOrEnumDeclaration(JavacParser.java:4244)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classOrInterfaceOrRecordBodyDeclaration(JavacParser.java:4647)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classInterfaceOrRecordBody(JavacParser.java:4597)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classDeclaration(JavacParser.java:4297)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classOrRecordOrInterfaceOrEnumDeclaration(JavacParser.java:4244)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.typeDeclaration(JavacParser.java:4233)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:4040)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:653)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:630)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:690)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:1041)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler$InitialFileParser.parse(JavaCompiler.java:1984)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:1028)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.parseInternal(JavacTaskImpl.java:258)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.parse(JavacTaskImpl.java:248)
at ArrayCreationTree.main(ArrayCreationTree.java:60)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1575)
An exception has occurred in the compiler (23-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.NullPointerException: Cannot read field "head" because "this.elems" is null
at jdk.compiler/com.sun.tools.javac.util.ListBuffer.first(ListBuffer.java:190)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.merge(JavacParser.java:1270)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.foldIfNeeded(JavacParser.java:1254)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.foldStrings(JavacParser.java:1232)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term2Rest(JavacParser.java:1208)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:1122)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:1090)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:1046)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:1026)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:891)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:2249)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classCreatorRest(JavacParser.java:2699)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.creator(JavacParser.java:2594)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1439)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:1119)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:1090)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:1046)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:1026)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:891)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseSimpleStatement(JavacParser.java:3098)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2847)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2784)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2754)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2768)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseSimpleStatement(JavacParser.java:2998)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2847)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2809)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseSimpleStatement(JavacParser.java:3002)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2847)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2784)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2754)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2768)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.methodDeclaratorRest(JavacParser.java:4936)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.constructorOrMethodOrFieldDeclaration(JavacParser.java:4733)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classOrInterfaceOrRecordBodyDeclaration(JavacParser.java:4658)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classInterfaceOrRecordBody(JavacParser.java:4597)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classDeclaration(JavacParser.java:4297)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classOrRecordOrInterfaceOrEnumDeclaration(JavacParser.java:4244)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classOrInterfaceOrRecordBodyDeclaration(JavacParser.java:4647)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classInterfaceOrRecordBody(JavacParser.java:4597)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classDeclaration(JavacParser.java:4297)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.classOrRecordOrInterfaceOrEnumDeclaration(JavacParser.java:4244)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.typeDeclaration(JavacParser.java:4233)
at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:4040)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:653)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:630)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:690)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:1041)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler$InitialFileParser.parse(JavaCompiler.java:1984)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:1028)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.parseInternal(JavacTaskImpl.java:258)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.parse(JavacTaskImpl.java:248)
at ArrayCreationTree.main(ArrayCreationTree.java:60)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1575)
- backported by
-
JDK-8334020 NPE in ArrayCreationTree.java with -XX:-UseCompressedOops
- Resolved
-
JDK-8337381 NPE in ArrayCreationTree.java with -XX:-UseCompressedOops
- Resolved
-
JDK-8337924 NPE in ArrayCreationTree.java with -XX:-UseCompressedOops
- Resolved
- relates to
-
JDK-8316991 Reduce nullable allocation merges
- Resolved
- links to
-
Commit(jdk23) openjdk/jdk/ec1782cd
-
Commit(master) openjdk/jdk/005fb67e
-
Review(jdk23) openjdk/jdk/20210
-
Review(master) openjdk/jdk/20087
(3 links to)