test/tools/javac/generics/wildcards/pos/UncheckedCast1.java

Print this page

        

*** 25,35 **** * @test * @bug 4875036 * @summary generics: failure of some unchecked casts * @author gafter * ! * @compile -source 1.5 UncheckedCast1.java */ class Z { <U, T extends U> T g(Object o) { return (T) o; // bug??? --- 25,35 ---- * @test * @bug 4875036 * @summary generics: failure of some unchecked casts * @author gafter * ! * @compile UncheckedCast1.java */ class Z { <U, T extends U> T g(Object o) { return (T) o; // bug???