156e82c164
Default annotation value is not attributed Reviewed-by: jjg, darcy
19 lines
415 B
Java
19 lines
415 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 6881115
|
|
* @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
|
|
class T6881115 {}
|