|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
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);
}
}
|