jdk-24/langtools/test/tools/javac/annotations/repeatingAnnotations/MissingDefaultCase1.java
Joel Borggrén-Franck c3e43ab7d5 8005205: tests missing bugid for repeating annotation change
Reviewed-by: jjg, ssides
2013-03-12 11:16:30 +01:00

21 lines
491 B
Java

/**
* @test /nodynamiccopyright/
* @bug 7169362 8001114
* @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.Repeatable;
@Repeatable(FooContainer.class)
@interface Foo {}
@interface FooContainer {
Foo[] value();
String other(); // missing default clause
}
@Foo @Foo
public class MissingDefaultCase1 {}