changeset 10 | 06bc494ca11e |
child 6150 | d055fa8ced62 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/test/tools/javac/IllegalAnnotation.java Sat Dec 01 00:00:00 2007 +0000 @@ -0,0 +1,13 @@ +/** + * @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 { } + } +}