Files
2017-12-16 17:19:45 -08:00

22 lines
391 B
Java

/*
* @test /nodynamiccopyright/
* @summary Smoke test for repeating annotations
* @compile/fail/ref=RepeatingAndContainerPresent.out -XDrawDiagnostics RepeatingAndContainerPresent.java
* @bug 7151010
*/
import java.lang.annotation.*;
@Repeatable(Foos.class)
@interface Foo {}
@interface Foos {
Foo[] value();
}
@Foo
@Foo
@Foos({})
public class RepeatingAndContainerPresent {}