jdk-24/test/langtools/tools/javac/ClassCycle/ClassCycle3a.java

12 lines
298 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 4497044
* @summary java.lang.StackOverflowError for cyclic inheritance
*
* @compile ClassCycle3a.java
* @compile/fail/ref=ClassCycle3a.out -XDrawDiagnostics ClassCycle3b.java
2007-12-01 00:00:00 +00:00
*/
interface ClassCycle3b {}
class ClassCycle3a implements ClassCycle3b {}