2012-08-31 10:37:46 +01:00
|
|
|
/*
|
2014-08-12 17:48:30 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2012-08-31 10:37:46 +01:00
|
|
|
* @summary Smoke test for repeating annotations
|
2014-08-12 17:48:30 -07:00
|
|
|
* @compile/fail/ref=RepeatingAndContainerPresent.out -XDrawDiagnostics RepeatingAndContainerPresent.java
|
2012-08-31 10:37:46 +01:00
|
|
|
* @bug 7151010
|
|
|
|
*/
|
|
|
|
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
|
2013-01-14 13:50:01 -08:00
|
|
|
@Repeatable(Foos.class)
|
2012-08-31 10:37:46 +01:00
|
|
|
@interface Foo {}
|
|
|
|
|
|
|
|
@interface Foos {
|
|
|
|
Foo[] value();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Foo
|
|
|
|
@Foo
|
|
|
|
@Foos({})
|
|
|
|
public class RepeatingAndContainerPresent {}
|