The following program does not compile anymore after 7166552:
import java.util.List;
class Test<A> {
public static void test(List l) {
Test<Object> to = m(l);
}
public static <E> Test<String> m(List<E> le) {
return null;
}
}
[used to compile with unchecked warnings]
import java.util.List;
class Test<A> {
public static void test(List l) {
Test<Object> to = m(l);
}
public static <E> Test<String> m(List<E> le) {
return null;
}
}
[used to compile with unchecked warnings]
- relates to
-
JDK-7166552 Inference: cleanup usage of Type.ForAll
-
- Closed
-
-
JDK-8000233 Fix issues in recent push
-
- Closed
-