IllegalAnnotation.java revision 4249:069d27d987c7
1/** 2 * @test /nodynamiccopyright/ 3 * @bug 5012028 6384539 8074364 4 * @summary javac crash when declare an annotation type illegally 5 * 6 * @compile/fail/ref=IllegalAnnotation.out -XDrawDiagnostics IllegalAnnotation.java 7 */ 8class IllegalAnnotation { 9 { 10 @interface SomeAnnotation { } 11 } 12} 13