-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P2
-
None
-
Affects Version/s: 5.0
-
Component/s: tools
-
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
-