jdk-24/test/langtools/tools/javac/IllegalAnnotation.java
Vicente Romero 9efdaacc31 8242478: compiler implementation for records (Second Preview)
Reviewed-by: mcimadamore, jlahoda, darcy
2020-05-17 11:09:52 -04:00

14 lines
377 B
Java

/**
* @test /nodynamiccopyright/
* @bug 5012028 6384539 8074364
* @summary javac crash when declare an annotation type illegally
*
* @compile/fail/ref=IllegalAnnotation.out -XDrawDiagnostics IllegalAnnotation.java
* @compile --enable-preview -source ${jdk.version} IllegalAnnotation.java
*/
class IllegalAnnotation {
{
@interface SomeAnnotation { }
}
}