Community
Participate
Working Groups
The message that the compiler emits for unchecked cast should be improved. Before: Type safety: The cast from Object to List<? extends Object> is actually checking against the erased type List After: Type safety: Unchecked cast from Object to List<? extends Object>
The rationale is that after tuning the compiler for unchecked cast semantics, the old message was showing its age. Suggesting a raw type instead is just wrong. Unchecked cast (jls5.5) are situations where parameterization is inadequate. It doesn't mean it should go away. Also we are planning to report raw types in cast types so this would be plain wrong to suggest their usage. Also see bug 165145, bug 165143.
Released for 3.3M4.
Verified for 3.3M4 with I20061212-0010.