8bde2f4e3d
Co-authored-by: Vicente Romero <vromero@openjdk.org> Co-authored-by: Harold Seigel <hseigel@openjdk.org> Co-authored-by: Chris Hegarty <chegar@openjdk.org> Reviewed-by: jlahoda
13 lines
318 B
Java
13 lines
318 B
Java
/**
|
|
* @test /nodynamiccopyright/
|
|
* @bug 5012028 6384539 8074364 8250741 8246774
|
|
* @summary javac crash when declare an annotation type illegally
|
|
*
|
|
* @compile/fail/ref=IllegalAnnotation.out -XDrawDiagnostics IllegalAnnotation.java
|
|
*/
|
|
class IllegalAnnotation {
|
|
{
|
|
@interface SomeAnnotation { }
|
|
}
|
|
}
|