jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 4500240
4* @summary javac throws StackOverflowError for recursive inheritance
5*
6* @compile ClassCycle2a.java
7* @compile/fail/ref=ClassCycle2a.out -XDrawDiagnostics ClassCycle2b.java
8*/
9
10class ClassCycle2b {}
11class ClassCycle2a extends ClassCycle2b {}
12