2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-28 23:42:16 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 5044125
|
|
|
|
* @summary javac allows cyclic annotation interfaces with arrays
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-08-28 23:42:16 -07:00
|
|
|
* @compile/fail/ref=Cycle3.out -XDrawDiagnostics Cycle3.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package cycle3;
|
|
|
|
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import static java.lang.annotation.RetentionPolicy.*;
|
|
|
|
|
|
|
|
@Retention(RUNTIME)
|
|
|
|
@interface A {
|
2018-12-05 11:31:20 -08:00
|
|
|
A[] values() default { @A };
|
2007-12-01 00:00:00 +00:00
|
|
|
}
|
|
|
|
|
2018-12-05 11:31:20 -08:00
|
|
|
@A
|
2007-12-01 00:00:00 +00:00
|
|
|
class Main {
|
|
|
|
}
|