1 /* 2 * @test /nodynamiccopyright/ 3 * @bug 7177306 8007464 4 * @summary Regression: unchecked method call does not erase return type 5 * @compile/fail/ref=T7177306e_7.out -XDrawDiagnostics -source 7 -Xlint:-options -XDrawDiagnostics T7177306e.java 6 * @compile/fail/ref=T7177306e.out -XDrawDiagnostics T7177306e.java 7 */ 8 9 import java.util.List; 10 11 class T7177306e { 12 m(List<U> lu)13 <Z, U extends List<Z>> void m(List<U> lu) { } 14 test(List<List<?>> llw)15 void test(List<List<?>> llw) { 16 m(llw); 17 } 18 } 19