jjg@1386: /** jjg@1386: * @test /nodynamiccopyright/ jfranck@1626: * @bug 7169362 8001114 jjg@1386: * @author sogoel jjg@1386: * @summary Default case not specified for other methods in container annotation jjg@1386: * @compile/fail/ref=MissingDefaultCase1.out -XDrawDiagnostics MissingDefaultCase1.java jjg@1386: */ jjg@1386: jjg@1492: import java.lang.annotation.Repeatable; jjg@1386: jjg@1492: @Repeatable(FooContainer.class) jjg@1386: @interface Foo {} jjg@1386: jjg@1386: @interface FooContainer { jjg@1386: Foo[] value(); jjg@1386: String other(); // missing default clause jjg@1386: } jjg@1386: jjg@1386: @Foo @Foo jjg@1386: public class MissingDefaultCase1 {}