Summary: | [1.5][compiler] Applying "Remove cast" QuickFix causes incremental compile error. | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Brian Miller <bmiller> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Brian Miller
2005-06-03 12:23:32 EDT
IMO the compiler shouldn't flag this as an unnecessary cast in the first place. Moving to JDT/Core. This is questionnable. Technically, Bug<String> <: Bug, thus the cast doesn't provide any extra value. It is however permitting some forbidden conversion in this scenario, and removing the offending cast would reveal the badness in the code. I would thus favor leaving the warning in, to flag the situation. Will preserve existing behavior as explained above. |