mcimadamore@185: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@185: * @author Maurizio Cimadamore mcimadamore@185: * @bug 6665356 mcimadamore@185: * @summary Cast not allowed when both qualifying type and inner class are parameterized mcimadamore@185: * @compile/fail/ref=T6665356.out -XDrawDiagnostics T6665356.java mcimadamore@185: */ mcimadamore@185: mcimadamore@185: class T6665356 { mcimadamore@185: class Outer { mcimadamore@185: class Inner {} mcimadamore@185: } mcimadamore@185: mcimadamore@185: void test1() { mcimadamore@185: boolean b; mcimadamore@185: b = null instanceof Outer.Inner; mcimadamore@185: b = null instanceof Outer.Inner; mcimadamore@185: b = null instanceof Outer.Inner; mcimadamore@185: b = null instanceof Outer.Inner; mcimadamore@185: } mcimadamore@185: mcimadamore@185: void test2() { mcimadamore@185: boolean b; mcimadamore@185: Object o; mcimadamore@185: o = (Outer.Inner)null; mcimadamore@185: o = (Outer.Inner)null; mcimadamore@185: o = (Outer.Inner)null; mcimadamore@185: o = (Outer.Inner)null; mcimadamore@185: } jjg@384: }