9efdaacc31
Reviewed-by: mcimadamore, jlahoda, darcy
14 lines
377 B
Java
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 { }
|
|
}
|
|
}
|