diff -r eefd0e6642a8 -r 5652321f1ae4 langtools/test/tools/javac/annotations/repeatingAnnotations/MissingDefaultCase1.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/test/tools/javac/annotations/repeatingAnnotations/MissingDefaultCase1.java Fri Nov 02 14:35:57 2012 -0700 @@ -0,0 +1,23 @@ +/** + * @test /nodynamiccopyright/ + * @bug 7169362 + * @author sogoel + * @summary Default case not specified for other methods in container annotation + * @compile/fail/ref=MissingDefaultCase1.out -XDrawDiagnostics MissingDefaultCase1.java + */ + +import java.lang.annotation.ContainedBy; +import java.lang.annotation.ContainerFor; + +@ContainedBy(FooContainer.class) +@interface Foo {} + +@ContainerFor(Foo.class) +@interface FooContainer { + Foo[] value(); + String other(); // missing default clause +} + +@Foo @Foo +public class MissingDefaultCase1 {} +