/** * @test /nodynamiccopyright/ * @bug 7177306 * @summary Regression: unchecked method call does not erase return type * @compile/fail/ref=T7177306b.out -Werror -Xlint:unchecked -XDrawDiagnostics T7177306b.java */ import java.util.List; class T7177306b { > List m(List arg1, S arg2, Class arg3) { return arg2; } void test(List li, List ls, Class c) { m(li, ls, c); // should fail, because of bounds T <: Integer, S :> List } }