-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
5.0
-
generic
-
generic
This program compiles without warnings:
interface Foo {}
interface Bar<X> {}
class Test {
Object m(Foo f) {
return (Bar<Object>)f;
}
}
See also http://forum.java.sun.com/thread.jspa?threadID=642516
###@###.### 2005-07-08 17:34:34 GMT
interface Foo {}
interface Bar<X> {}
class Test {
Object m(Foo f) {
return (Bar<Object>)f;
}
}
See also http://forum.java.sun.com/thread.jspa?threadID=642516
###@###.### 2005-07-08 17:34:34 GMT
- duplicates
-
JDK-4916620 legal cast is rejected
-
- Closed
-