Summary: | [1.5][compiler] Missing unchecked cast warning on interface cast | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED INVALID | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | Ed.Merks, jerome_lanneluc | ||||
Version: | 3.4 | ||||||
Target Milestone: | 3.5 M4 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Philipe Mulet
2008-07-15 07:32:38 EDT
import java.util.*; public class X { X(List rawList, List<?> unboundList) { Throwable t0 = (Throwable) Collections.emptyList(); // unchecked Throwable t1 = (Throwable) rawList; // no warn Throwable t2 = (Throwable) unboundList; // unchecked } } Created attachment 117437 [details]
Proposed patch
Added GenericTypeTest#test1405 Released for 3.5M4. Fixed After second thought, I don't think this one should be flagged as unchecked any longer. Will back out the change. Backed out the change, and added more unchecked warning tests: GenericTypeTest#1408-1415 Verified for 3.5M4 |