source: trunk/openjdk/langtools/test/tools/javac/IllegalAnnotation.java

Last change on this file was 2, checked in by dmik, 15 years ago

Imported OpenJDK 6 b19 sources from Oracle.

File size: 351 bytes
Line 
1/**
2 * @test /nodynamiccopyright/
3 * @bug 5012028 6384539
4 * @summary javac crash when declare an annotation type illegally
5 *
6 * @compile/fail IllegalAnnotation.java
7 * @compile/fail/ref=IllegalAnnotation.out -XDdev -XDrawDiagnostics -XDstdout IllegalAnnotation.java
8 */
9class IllegalAnnotation {
10 {
11 @interface SomeAnnotation { }
12 }
13}
Note: See TracBrowser for help on using the repository browser.