623:6318230cdb82 | 629:0fe472f4a332 |
---|---|
1 /* | |
2 * @test /nodynamiccopyright/ | |
3 * @bug 6881115 | |
4 * @summary javac permits nested anno w/o mandatory attrs => IncompleteAnnotationException | |
5 * @author mcimadamore | |
6 * @compile/fail/ref=T6881115.out -XDrawDiagnostics T6881115.java | |
7 */ | |
8 | |
9 @interface A { | |
10 B b() default @B(b2 = 1, b2 = 2); | |
11 B[] b_arr() default {@B(), @B(b2 = 1, b2 = 2)}; | |
12 } | |
13 @interface B { | |
14 String b1(); | |
15 int b2(); | |
16 } | |
17 @A | |
18 class T6881115 {} |