mcimadamore@356: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@356: * @bug 6806876 mcimadamore@356: * @author mcimadamore mcimadamore@356: * @summary ClassCastException occurs in assignment expressions without any heap pollutions mcimadamore@356: * @compile/fail/ref=T6806876.out -Xlint:unchecked -Werror -XDrawDiagnostics T6806876.java mcimadamore@356: */ mcimadamore@356: mcimadamore@356: class T6806876 { mcimadamore@356: void test(Integer i, Long l) { mcimadamore@356: Comparable[] res = m(i, l); mcimadamore@356: } mcimadamore@356: mcimadamore@356: T[] m(T...a) { mcimadamore@356: return null; mcimadamore@356: } jjg@384: }