Summary: | [1.5][compiler] Duplicate return; in CastExpression line 258 | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.2 | ||
Target Milestone: | 3.2 RC1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Olivier Thomann
2006-03-29 15:01:57 EST
Note that the released code is missing unnecessary cast diagnostic for: public class X { void foo(Throwable... exceptions) { } void bar(Exception[] exceptions) { foo((Throwable[])exceptions); // unnecessary cast } } fix is to write instead: (note need to reverse condition) if (lastArgType.isCompatibleWith(varargsType.elementsType())) return; Added VarargsTest#test046. Fixed Verified for 3.2 RC1 using build I20060413-0010. |