mcimadamore@195: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@195: * @author Maurizio Cimadamore mcimadamore@195: * @bug 6795580 mcimadamore@195: * @summary parser confused by square brackets in qualified generic cast mcimadamore@195: * @compile/fail/ref=T6795580.out -XDrawDiagnostics T6795580.java mcimadamore@195: */ mcimadamore@195: mcimadamore@195: class T6795580 { mcimadamore@195: class Outer { mcimadamore@195: class Inner {} mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast1(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast2(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast3(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast4(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast5(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast6(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast7(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast8(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast9(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast10(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } mcimadamore@195: mcimadamore@195: void cast11(Outer.Inner[] p) { mcimadamore@195: Object o = (Outer.Inner[])p; mcimadamore@195: } jjg@384: }