jdk-24/langtools/test/tools/javac/6863465/T6863465d.java
Maurizio Cimadamore 05fb73163c 6863465: javac doesn't detect circular subclass dependencies via qualified names
Class inheritance circularity check should look at trees, not just symbols

Reviewed-by: jjg
2010-09-18 14:24:09 -07:00

15 lines
503 B
Java

/**
* @test /nodynamiccopyright/
* @bug 6863465
* @summary javac doesn't detect circular subclass dependencies via qualified names
* @author Maurizio Cimadamore
* @compile/fail/ref=T6863465d.out -XDrawDiagnostics T6863465d.java
*/
class T6863465d {
static class a { static interface b { static interface d {} } }
static class c extends a implements z.y, z.d {}
static class x { static interface y { static interface w {} } }
static class z extends x implements c.b, c.w {}
}