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