test/tools/javac/annotations/6881115/T6881115.java

changeset 634
27bae58329d5
parent 629
0fe472f4a332
child 722
4851ff2ffc10
equal deleted inserted replaced
633:c04ae2714f52 634:27bae58329d5
1 /* 1 /*
2 * @test /nodynamiccopyright/ 2 * @test /nodynamiccopyright/
3 * @bug 6881115 3 * @bug 6881115 6976649
4 * @summary javac permits nested anno w/o mandatory attrs => IncompleteAnnotationException 4 * @summary javac permits nested anno w/o mandatory attrs => IncompleteAnnotationException
5 * @author mcimadamore 5 * @author mcimadamore
6 * @compile/fail/ref=T6881115.out -XDrawDiagnostics T6881115.java 6 * @compile/fail/ref=T6881115.out -XDrawDiagnostics T6881115.java
7 */ 7 */
8 8
12 } 12 }
13 @interface B { 13 @interface B {
14 String b1(); 14 String b1();
15 int b2(); 15 int b2();
16 } 16 }
17 @A 17 @A(b = @B(b2 = 1, b2 = 2),
18 class T6881115 {} 18 b_arr = {@B(), @B(b2 = 1, b2 = 2)})
19 class T6881115<@A(b = @B(b2 = 1, b2 = 2),
20 b_arr = {@B(), @B(b2 = 1, b2 = 2)}) X> {}

mercurial