jjg@1386: /** jjg@1386: * @test /nodynamiccopyright/ jjg@1386: * @bug 7169362 jjg@1386: * @author sogoel jjg@1386: * @summary Missing default case for other method and return type is base annotation jjg@1386: * @compile/fail/ref=MissingDefaultCase2.out -XDrawDiagnostics MissingDefaultCase2.java jjg@1386: */ jjg@1386: jjg@1386: import java.lang.annotation.ContainedBy; jjg@1386: import java.lang.annotation.ContainerFor; jjg@1386: jjg@1386: @ContainedBy(FooContainer.class) jjg@1386: @interface Foo {} jjg@1386: jjg@1386: @ContainerFor(Foo.class) jjg@1386: @interface FooContainer { jjg@1386: Foo[] value(); jjg@1386: Foo other(); // missing default clause and return type is an annotation jjg@1386: } jjg@1386: jjg@1386: @Foo @Foo jjg@1386: public class MissingDefaultCase2 {} jjg@1386: