14e6aa6b9e
Reviewed-by: jjg
22 lines
391 B
Java
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 {}
|