14 lines
351 B
Java
14 lines
351 B
Java
/**
|
|
* @test /nodynamiccopyright/
|
|
* @bug 5012028 6384539
|
|
* @summary javac crash when declare an annotation type illegally
|
|
*
|
|
* @compile/fail IllegalAnnotation.java
|
|
* @compile/fail/ref=IllegalAnnotation.out -XDdev -XDrawDiagnostics -XDstdout IllegalAnnotation.java
|
|
*/
|
|
class IllegalAnnotation {
|
|
{
|
|
@interface SomeAnnotation { }
|
|
}
|
|
}
|