jdk-24/test/langtools/tools/javac/ClassCycle/ClassCycle1a.java
2017-09-12 19:03:39 +02:00

12 lines
305 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4500240
* @summary javac throws StackOverflowError for recursive inheritance
*
* @compile ClassCycle1a.java
* @compile/fail/ref=ClassCycle1a.out -XDrawDiagnostics ClassCycle1b.java
*/
interface ClassCycle1b {}
interface ClassCycle1a extends ClassCycle1b {}