Community
Participate
Working Groups
public void foo(int[] a) { a[0] } The statments recovery create the following ast public void foo(int[] a) { a[0] = 'fake SimpleName' } The length of the fake SimpleName is 1 and should be 0 because the source doesn't really contain this node.
Fixed and test added ASTConverterRecoveryTest#test0013() In RecoveryScanner#getNextToken() this.startPosition = this.currentPosition - 1; must be replaced by this.startPosition = this.currentPosition; for inserted tokens.
Verified using I20060328-0010 for 3.2M6