-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b99
-
unknown
-
generic
-
Verified
The following program does not compile with javac - but is accepted by Eclipse
interface Foo<X extends Comparable<X>> {
List<X> getList();
}
class Test {
<T extends Comparable<? super T>> List<T> m(List<T> arg) { return null; }
void test(Foo<?> foo) {
m(foo.getList()).get(0);
}
}
interface Foo<X extends Comparable<X>> {
List<X> getList();
}
class Test {
<T extends Comparable<? super T>> List<T> m(List<T> arg) { return null; }
void test(Foo<?> foo) {
m(foo.getList()).get(0);
}
}
- relates to
-
JDK-8012039 enum type variable not within its bound
-
- Open
-
-
JDK-8033718 Inference ignores capture variable as upper bound
-
- Closed
-
-
JDK-6893625 Generics case does not compile
-
- Open
-
-
JDK-7115044 Umbrella: Add support for lambda expressions
-
- Resolved
-