mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
13 lines
341 B
Java
13 lines
341 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 IllegalAnnotation.java
|
|
*/
|
|
class IllegalAnnotation {
|
|
{
|
|
@interface SomeAnnotation { }
|
|
}
|
|
}
|