jdk-24/test/langtools/tools/javac/annotations/repeatingAnnotations/RepeatingAndContainerPresent.java
2017-09-12 19:03:39 +02: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 {}