-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b67
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2132581 | 5.0u7 | Peter Ahe | P2 | Closed | Cannot Reproduce |
This program doesn't compile:
interface MyInterface<V> { }
class MyImpl implements MyInterface {
MyInterface<Integer> o1 = (MyInterface<Integer>) (MyImpl)null;
MyImpl o2 = (MyImpl) (MyInterface<Integer>)null;
}
interface MyInterface<V> { }
class MyImpl implements MyInterface {
MyInterface<Integer> o1 = (MyInterface<Integer>) (MyImpl)null;
MyImpl o2 = (MyImpl) (MyInterface<Integer>)null;
}
- backported by
-
JDK-2132581 Cast involving raw superclass not recognized as unchecked
- Closed
- relates to
-
JDK-4916620 legal cast is rejected
- Closed