Summary: | [1.5][compiler] missing unchecked cast warning | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Igor Fedorenko <igor> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | akiezun, leberre, rlenard |
Version: | 3.1 | ||
Target Milestone: | 3.1 M5 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Igor Fedorenko
2004-11-15 00:04:28 EST
Added support to detect unsafe cast to type variable. Added regression test: GenericTypeTest#test438. Also tuned unsafe cast message to read: 1. WARNING in d:\...\src\X.java (at line 6) list.add((T) abs); // unchecked cast ^^^^^^^ Type safety: The cast from Object to T will actually check against the erased type Object at runtime Fix will be released once M4 is declared *** Bug 78810 has been marked as a duplicate of this bug. *** *** Bug 82288 has been marked as a duplicate of this bug. *** *** Bug 83215 has been marked as a duplicate of this bug. *** Verified in I20050214 |