generics: do not accept inferred lower bound when inferred through raw type (IDEA-93672)

This commit is contained in:
anna
2012-10-26 13:29:55 +02:00
parent 8dcd6ba5d3
commit 8f303c23aa
3 changed files with 19 additions and 1 deletions
@@ -0,0 +1,17 @@
import java.util.*;
class Test {
interface Condition<K> {}
class IOC<M> implements Condition {}
static <T> List<T> filter(T[] c, Condition<? super T> con) {
return null;
}
interface OE {}
interface LOE extends OE {}
void foo(OE[] es, IOC<LOE> con) {
List<LOE> l = filter(es, con);
}
}