mcimadamore@629: /* mcimadamore@629: * @test /nodynamiccopyright/ mcimadamore@629: * @bug 6881115 mcimadamore@629: * @summary javac permits nested anno w/o mandatory attrs => IncompleteAnnotationException mcimadamore@629: * @author mcimadamore mcimadamore@629: * @compile/fail/ref=T6881115.out -XDrawDiagnostics T6881115.java mcimadamore@629: */ mcimadamore@629: mcimadamore@629: @interface A { mcimadamore@629: B b() default @B(b2 = 1, b2 = 2); mcimadamore@629: B[] b_arr() default {@B(), @B(b2 = 1, b2 = 2)}; mcimadamore@629: } mcimadamore@629: @interface B { mcimadamore@629: String b1(); mcimadamore@629: int b2(); mcimadamore@629: } mcimadamore@629: @A mcimadamore@629: class T6881115 {}