Community
Participate
Working Groups
(from bug 100369 test case) build I20060327-0010 ------------------------------------------ int length2 = length2 = 0; // first problem int length3 = 0; length3 = length3 = 0; // second problem ------------------------------------------ Only the variable name declation has a red squiggle for the first error but all the assigment has a red squggle for the second error. All the assignment should be underline for the first error.
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