/* * @test /nodynamiccopyright/ * @author Maurizio Cimadamore * @bug 6557182 * @summary Unchecked warning *and* inconvertible types * @compile/fail/ref=T6557182.out -XDrawDiagnostics -Xlint:unchecked T6557182.java */ class T6557182 { > void test1(T t) { Comparable ci = (Comparable) t; } > void test2(T t) { Comparable ci = (Comparable) t; } }