jdk-24/test/langtools/tools/javac/8236697/T8236697.java
Adam Sotona 63ade9c49c 8236697: Stack overflow with cyclic hierarchy in class file
Implemented minimal necessary cycle detection to avoid stack overflow in c.s.t.j.code.Types::asSuper

Reviewed-by: vromero
2020-06-08 16:07:03 -04:00

13 lines
271 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8236697
* @summary Stack overflow with cyclic hierarchy in class file
* @build Cyclic
* @compile/fail/ref=T8236697.out -XDrawDiagnostics T8236697.java
*/
interface T8236697 extends Iterable {
public Cyclic iterator();
}