Community
Participate
Working Groups
build I20060614-0843 + JDT/core HEAD public class X { void foo() { int i = a[0\u005D; } } During compilation the source end of the array access isn't correct. The source end is at the start of the unicode character instead of the end of the unicode character.
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.