2813:d94fe2d29b1e | 2814:380f6c17ea01 |
---|---|
1 /* | |
2 * @test /nodynamiccopyright/ | |
3 * @bug 8028389 | |
4 * @summary javac should output a proper error message when given something | |
5 * like new Object(){} as annotation argument. | |
6 * | |
7 * @compile/fail/ref=AnonSubclass.out -XDrawDiagnostics AnonSubclass.java | |
8 */ | |
9 | |
10 @AnonSubclass(new Object(){}) | |
11 @interface AnonSubclass { | |
12 String value(); | |
13 } |