Summary: | [compiler] No effect assignment diagnosis range isn't correct | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | David Audel <david_audel> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | philippe_mulet |
Version: | 3.2 | ||
Target Milestone: | 3.2 RC1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
David Audel
2006-03-27 09:20:04 EST
Candidate for RC1? +1 for 3.2RC1, if not harmful to UI. What do you expect to be underlined in the first case ? "length2 = length2 = 0" or "int length2 = length2 = 0;" ? I prefer "length2 = length2 = 0", but i think that both are good. Fixed and released in HEAD. The ranges are now consistent. In: int length2 = length2 = 0; // first problem it underlines: length2 = length2 = 0 In: int length3 = 0; length3 = length3 = 0; // second problem it underlines: length3 = length3 = 0 Added regression test in org.eclipse.jdt.core.tests.compiler.regression.AssignmentTest.test045 and updated existing tests. All JDT/Core tests passed. Verified for 3.2 RC1 using build I20060413-0010 |