-
Bug
-
Resolution: Fixed
-
P3
-
8u40
-
b01
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8064049 | 8u45 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | b01 |
JDK-8051468 | 8u20 | Vicente Arturo Romero Zaldivar | P3 | Closed | Won't Fix | |
JDK-8070269 | emb-8u47 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | team |
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
}
}
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
}
}
- backported by
-
JDK-8064049 javac, additional test case for JDK-8051402
- Resolved
-
JDK-8070269 javac, additional test case for JDK-8051402
- Resolved
-
JDK-8051468 javac, additional test case for JDK-8051402
- Closed
- relates to
-
JDK-8051402 javac, type containment should accept that CAP <= ? extends CAP and CAP <= ? super CAP
- Resolved