jdk-24/test/langtools/tools/javac/IllegalAnnotation.java

14 lines
377 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/**
* @test /nodynamiccopyright/
* @bug 5012028 6384539 8074364
2007-12-01 00:00:00 +00:00
* @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
2007-12-01 00:00:00 +00:00
*/
class IllegalAnnotation {
{
@interface SomeAnnotation { }
}
}