-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P2
-
Affects Version/s: 6
-
Component/s: tools
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