File: T6881115.java

package info (click to toggle)
libnb-javaparser-java 7.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,688 kB
  • sloc: java: 189,590; sh: 3,082; xml: 2,085; makefile: 379
file content (20 lines) | stat: -rw-r--r-- 578 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * @test /nodynamiccopyright/
 * @bug     6881115 6976649
 * @summary javac permits nested anno w/o mandatory attrs => IncompleteAnnotationException
 * @author  mcimadamore
 * @compile/fail/ref=T6881115.out -XDrawDiagnostics T6881115.java
 */

@interface A {
    B b() default @B(b2 = 1, b2 = 2);
    B[] b_arr() default {@B(), @B(b2 = 1, b2 = 2)};
}
@interface B {
    String b1();
    int b2();
}
@A(b = @B(b2 = 1, b2 = 2),
   b_arr = {@B(), @B(b2 = 1, b2 = 2)})
class T6881115</*308 @A(b = @B(b2 = 1, b2 = 2),
                  b_arr = {@B(), @B(b2 = 1, b2 = 2)})*/ X> {}