mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
12 lines
294 B
Java
12 lines
294 B
Java
/**
|
|
* @test /nodynamiccopyright/
|
|
* @bug 5012028 6384539
|
|
* @summary javac crash when declare an annotation type illegally
|
|
*
|
|
* @compile/fail/ref=IllegalAnnotation.out -XDrawDiagnostics IllegalAnnotation.java
|
|
*/
|
|
class IllegalAnnotation {
|
|
{
|
|
@interface SomeAnnotation { }
|
|
}
|
|
}
|