2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-29 06:42:16 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4906400
|
|
|
|
* @summary (JSR175) compiler allows self-containing annotation types
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-08-29 06:42:16 +00:00
|
|
|
* @compile/fail/ref=Cycle2.out -XDrawDiagnostics Cycle2.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package cycle2;
|
|
|
|
|
|
|
|
@interface Bar {
|
|
|
|
Baz baz();
|
|
|
|
}
|
|
|
|
|
|
|
|
@interface Baz {
|
|
|
|
Bar bar();
|
|
|
|
}
|