langtools/test/tools/javac/annotations/6881115/T6881115.java
author mcimadamore
Thu, 05 Aug 2010 09:44:54 +0100
changeset 6342 228b73431edb
child 6347 947437d52cc1
permissions -rw-r--r--
6881115: javac permits nested anno w/o mandatory attrs => IncompleteAnnotationException Summary: default annotation value is not attributed Reviewed-by: jjg, darcy

/*
 * @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 {}