Community
Participate
Working Groups
Build 20020123 Consider the following source code: class A { void f() { int f= new A[1+2].length; } } The source start,end of the field reference to initialize the int f is [44,49] which covers the word length. Since the field reference contains the array allocation expression (position [33,42]) the source start, end of the field reference should be [32, 49].
Agreed, but then we would need to use the sourceEnd of the field reference for codegen positions. Deferring
But it will be fixed in the new AST ?
This problem will be fixed in new AST. I am working on it.
This is fixed in the new AST. Please continue to send me all the cases we think that they could lead to some position issues. The more I have, the more stable the new AST implementation will be. See ASTConverterTest.test0167. Thanks for the report.
Is this still an issue ?
Don't think so since regarding to Olivier the original problem got fixed.
Given you only use the new AST now... closing
Closing