2013-01-14 13:50:01 -08:00

20 lines
403 B
Java

/**
* @test /nodynamiccopyright/
* @bug 7169362
* @author sogoel
* @summary ContainerAnnotation does not have FooContainer.class specified
* @compile/fail/ref=MissingContainer.out -XDrawDiagnostics MissingContainer.java
*/
import java.lang.annotation.Repeatable;
@Repeatable()
@interface Foo {}
@interface FooContainer {
Foo[] value();
}
@Foo @Foo
public class MissingContainer {}