jdk-24/test/langtools/tools/javac/annotations/neg/Cycle2.java

19 lines
294 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4906400
* @summary (JSR175) compiler allows self-containing annotation types
* @author gafter
*
* @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();
}