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=UseWrongRepeatable.out -XDrawDiagnostics UseWrongRepeatable.java
|
2012-08-31 10:37:46 +01:00
|
|
|
* @bug 7151010
|
|
|
|
*/
|
|
|
|
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
|
|
|
|
@interface Foos {
|
2013-01-14 13:50:01 -08:00
|
|
|
UseWrongRepeatable[] value();
|
2012-08-31 10:37:46 +01:00
|
|
|
}
|
|
|
|
|
2013-01-14 13:50:01 -08:00
|
|
|
@Repeatable(Target.class)
|
|
|
|
public @interface UseWrongRepeatable {}
|
|
|
|
|
|
|
|
@UseWrongRepeatable @UseWrongRepeatable
|
|
|
|
@interface Foo {}
|