|
Relates :
|
This fix should add the following test case related to JDK-8051402:
import java.util.List;
public abstract class CopyOfFilter {
abstract <T> List<T> copyOf(List<? extends T> lx);
abstract <E> List<E> filter(List<E> lx);
<U> void f(List<U> lx) {
copyOf(filter(lx)); // ok
}
void g(List<?> lx) {
copyOf(filter(lx)); // ok
}
}