Summary: | source end of array access isn't correct | ||||||
---|---|---|---|---|---|---|---|
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: | 3.0 | ||||||
Target Milestone: | 3.3 M1 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Bug Depends on: | |||||||
Bug Blocks: | 143212 | ||||||
Attachments: |
|
Description
David Audel
2006-06-20 10:59:16 EDT
There is the same bug with array creation: new String[0\u005D; Created attachment 44997 [details]
Proposed patch
sourceEnd of ArrayAllocationExpression and ArrayReference must be at the end position of [ instead at the start position of ]. Start and end are at the same position unless if the bracket is an unicode. Fix released and test added ASTConverterTestAST3_2#test648() -> test651() Released for 3.3 M1. Verified for 3.3 M1 using build I20060804-0010. |