-
Bug
-
Resolution: Fixed
-
P2
-
21.0.2, 22
-
b23
-
b26
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8320962 | 21.0.3-oracle | Ravi Reddy | P2 | Resolved | Fixed | b01 |
JDK-8324032 | 21.0.3 | Ravi Reddy | P2 | Resolved | Fixed | b01 |
JDK-8320963 | 21.0.2 | Ravi Reddy | P2 | Closed | Fixed | b09 |
JDK-8323201 | 17-pool-oracle | Vicente Arturo Romero Zaldivar | P2 | Closed | Not an Issue | |
JDK-8322334 | 17.0.11 | Liam Miller-Cushon | P2 | Resolved | Fixed | b01 |
JDK-8323200 | 11-pool-oracle | Vicente Arturo Romero Zaldivar | P2 | Closed | Not an Issue | |
JDK-8322331 | 11.0.23 | Liam Miller-Cushon | P2 | Resolved | Fixed | b01 |
Possibly a regression caused by - https://bugs.openjdk.org/browse/JDK-8225377
The tests are passing with JDK22-b22.
Attaching the sample AnnotationProcessor with sample target class file (Tester)
Here is the observation :
====
With b-22 ( Tester class successfully parsed by Annotation Processor)
====
/scratch/jdk-cache/22/22/jdk-22/bin/javac -processor AnnoProc Tester
init...
process...
annotations []
With b-23 ( java.lang.AssertionError: Cannot add metadata to this type: VOID )
====
/scratch/jdk-cache/22/23/jdk-22/bin/javac -processor AnnoProc Tester
An exception has occurred in the compiler (22-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.AssertionError: Cannot add metadata to this type: VOID
at jdk.compiler/com.sun.tools.javac.code.Type.cloneWithMetadata(Type.java:351)
at jdk.compiler/com.sun.tools.javac.code.Type.addMetadata(Type.java:390)
at jdk.compiler/com.sun.tools.javac.code.Type.annotatedType(Type.java:456)
at jdk.compiler/com.sun.tools.javac.jvm.ClassReader$TypeAnnotationTypeMapping.reannotate(ClassReader.java:2548)
at jdk.compiler/com.sun.tools.javac.jvm.ClassReader$TypeAnnotationTypeMapping.visitType(ClassReader.java:2568)
at jdk.compiler/com.sun.tools.javac.jvm.ClassReader$TypeAnnotationTypeMapping.visitType(ClassReader.java:2523)
at jdk.compiler/com.sun.tools.javac.code.Type.accept(Type.java:223)
at jdk.compiler/com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4894)
at jdk.compiler/com.sun.tools.javac.jvm.ClassReader$TypeAnnotationSymbolVisitor.addTypeAnnotations(ClassReader.java:2426)
at jdk.compiler/com.sun.tools.javac.jvm.ClassReader$TypeAnnotationSymbolVisitor.addTypeAnnotations(ClassReader.java:2394)
at jdk.compiler/com.sun.tools.javac.jvm.ClassReader$TypeAnnotationSymbolVisitor.visitMethodSymbol(ClassReader.java:2335)
at jdk.compiler/com.sun.tools.javac.jvm.ClassReader$TypeAnnotationSymbolVisitor.visitMethodSymbol(ClassReader.java:2286)
at jdk.compiler/com.sun.tools.javac.code.Symbol$MethodSymbol.accept(Symbol.java:2271)
at jdk.compiler/com.sun.tools.javac.code.Types$DefaultSymbolVisitor.visit(Types.java:4921)
at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.addTypeAnnotationsToSymbol(ClassReader.java:2283)
at jdk.compiler/com.sun.tools.javac.jvm.ClassReader$TypeAnnotationCompleter.run(ClassReader.java:2266)
at jdk.compiler/com.sun.tools.javac.comp.Annotate.flush(Annotate.java:191)
at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:322)
at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:682)
at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1418)
at jdk.compiler/com.sun.tools.javac.code.ClassFinder.loadClass(ClassFinder.java:446)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.resolveBinaryNameOrIdent(JavaCompiler.java:730)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.resolveBinaryNameOrIdent(JavaCompiler.java:719)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1239)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:946)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:319)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:178)
at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:66)
at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:52)
- backported by
-
JDK-8320962 javac crashes while adding type annotations to the return type of a constructor
- Resolved
-
JDK-8322331 javac crashes while adding type annotations to the return type of a constructor
- Resolved
-
JDK-8322334 javac crashes while adding type annotations to the return type of a constructor
- Resolved
-
JDK-8324032 javac crashes while adding type annotations to the return type of a constructor
- Resolved
-
JDK-8320963 javac crashes while adding type annotations to the return type of a constructor
- Closed
-
JDK-8323200 javac crashes while adding type annotations to the return type of a constructor
- Closed
-
JDK-8323201 javac crashes while adding type annotations to the return type of a constructor
- Closed
- relates to
-
JDK-8225377 type annotations are not visible to javac plugins across compilation boundaries
- Resolved
-
JDK-8322883 [BACKOUT] 8225377: type annotations are not visible to javac plugins across compilation boundaries
- Closed
- links to
-
Commit openjdk/jdk11u-dev/02df756f
-
Commit openjdk/jdk17u-dev/c44bd2bd
-
Commit openjdk/jdk21u/75929836
-
Commit openjdk/jdk/5e24aaf4
-
Review openjdk/jdk11u-dev/2312
-
Review openjdk/jdk17u-dev/2005
-
Review openjdk/jdk21u/412
-
Review openjdk/jdk/16774