Maurizio Cimadamore f49f25c60d 7177306: Regression: unchecked method call does not erase return type
Spurious extra call to Attr.checkMethod when method call is unchecked

Reviewed-by: jjg, dlsmith
2012-09-25 11:56:46 +01:00

18 lines
348 B
Java

/**
* @test /nodynamiccopyright/
* @bug 7177306
* @summary Regression: unchecked method call does not erase return type
* @compile/fail/ref=T7177306e.out -XDrawDiagnostics T7177306e.java
*/
import java.util.List;
class T7177306e {
<Z, U extends List<Z>> void m(List<U> lu) { }
void test(List<List<?>> llw) {
m(llw);
}
}