Summary: | Error location is not correct for empty array initializer | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | David Audel <david_audel> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.1 M3 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
David Audel
2002-10-25 08:56:55 EDT
In 'Parser#arrayInitializer(int length)' , 'searchPosition' is not correctly initialized. It is: int searchPosition = length == 0 ? endPosition : ai.expressions[0].sourceStart; But it must be: int searchPosition = length == 0 ? endPosition + 1 : ai.expressions [0].sourceStart; Fixed. Verified. |