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