-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b55
-
generic, x86
-
generic, linux, solaris_8, windows_2000, windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2113644 | 5.0u8 | Nishant Patel | P3 | Resolved | Fixed | b01 |
class X {
static class BB<T, S> { }
static class BD<T> extends BB<T, T> { }
void f() {
BB<? extends Number, ? super Integer> bb = null;
Object o = (BD<Number>) bb; // <<warn>> <<todo: cast-infer>>
}
}
- backported by
-
JDK-2113644 legal cast is rejected
-
- Resolved
-
- duplicates
-
JDK-6295056 Unchecked cast not reported as unsafe
-
- Closed
-
-
JDK-5066774 Bad interaction between generics, instanceof, inner classes, and subclasses
-
- Closed
-
-
JDK-5034609 Capture conversion implementation breaks a cast test
-
- Closed
-
-
JDK-5043020 Spurious unchecked cast warning
-
- Closed
-
-
JDK-5064736 Incompatible types are cast without error
-
- Closed
-
-
JDK-5065215 javac reports unnecessary unchecked warning
-
- Closed
-
-
JDK-6211853 "unchecked" warning for checked cast
-
- Closed
-
-
JDK-6256789 Legal cast rejected
-
- Closed
-
-
JDK-6282460 Legal cast rejected
-
- Closed
-
-
JDK-6286112 Wildcard cast problem
-
- Closed
-
-
JDK-6302214 erroneus "inconvertible types" error
-
- Closed
-
-
JDK-6302956 Illegal cast allowed Properties -> Map<String, String>
-
- Closed
-
-
JDK-2121343 Incompatible types are cast without error
-
- Closed
-
- relates to
-
JDK-7008619 Regression : Generic cast error caused by fix for CR 4916620 in JDK 5
-
- Resolved
-
-
JDK-6358534 Cast involving raw superclass not recognized as unchecked
-
- Closed
-
-
JDK-6219964 Compiler allows illegal cast of anonymous inner class
-
- Closed
-
-
JDK-6270073 Specification of casts involving final type is too strict
-
- Closed
-
-
JDK-6270087 Javac rejects legal cast
-
- Closed
-
-
JDK-4916622 unnecessary warning with cast
-
- Closed
-