langtools/test/tools/javac/6863465/T6863465a.java
author mcimadamore
Sat, 18 Sep 2010 14:24:09 -0700
changeset 6711 fc9732adc790
permissions -rw-r--r--
6863465: javac doesn't detect circular subclass dependencies via qualified names Summary: class inheritance circularity check should look at trees, not just symbols Reviewed-by: jjg

/**
 * @test /nodynamiccopyright/
 * @bug     6863465
 * @summary javac doesn't detect circular subclass dependencies via qualified names
 * @author  Maurizio Cimadamore
 * @compile/fail/ref=T6863465a.out -XDrawDiagnostics T6863465a.java
 */

class T6863465a {
    static class a { static interface b {} }
    static class c extends a implements z.y {}
    static class x { static interface y {} }
    static class z extends x implements c.b {}
}