Community
Participate
Working Groups
3.4 Look at the (recovered) AST of the following code: package xy; public class Try { void m(Object var) { if (1==1 && var.equals(1) { } } } There's a recovered if statement - expression is '1==1 && var.equals(1)' - then statement is ')' The then statement must not overlap with the expression.
Created attachment 108165 [details] Proposed fix This fix change the start position and the length of the recovered empty statement. The start position must be one character after the previous real token ')' and the length must be 0.
Released for 3.5M1. Test added ASTConverterRecoveryTest#test0018()
Verified for 3.5M1 using I20080805-1307