-
Bug
-
Resolution: Not an Issue
-
P2
-
6
This program doesn't compile:
interface Collection<E> {}
interface Foo<X> {}
interface Bar extends Foo { // notice Foo is raw!!!
}
class Baz<R,D> {
public R visit(Collection<? extends Foo<?>> trees, D d) {
return null;
}
R test(Collection<Bar> c, D d) {
return visit(c, d); // visit(Collection<? extends Foo<?>>,D) cannot
// be applied
}
}
###@###.### 2005-2-08 10:12:50 GMT
interface Collection<E> {}
interface Foo<X> {}
interface Bar extends Foo { // notice Foo is raw!!!
}
class Baz<R,D> {
public R visit(Collection<? extends Foo<?>> trees, D d) {
return null;
}
R test(Collection<Bar> c, D d) {
return visit(c, d); // visit(Collection<? extends Foo<?>>,D) cannot
// be applied
}
}
###@###.### 2005-2-08 10:12:50 GMT