We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sourceEnd
JDTTreeBuilderHelper#createTypeAccessNoClasspath
In JDTTreeBuilderHelper#createTypeAccessNoClasspath the following code is used to calculate sourceEnd:
int sourceEnd = (int) (positions[qualifiedNameReference.indexOfFirstFieldBinding - 1] >>> 32) - 2;
I'm wondering why you don't use:
int sourceEnd = qualifiedNameReference.sourceEnd();
instead? I have a case in which qualifiedNameReference.indexOfFirstFieldBinding is 0 and, therefore, an ArrayIndexOutOfBoundsException is thrown.
qualifiedNameReference.indexOfFirstFieldBinding
0
ArrayIndexOutOfBoundsException
The text was updated successfully, but these errors were encountered:
Fixed source position calculation in createTypeAccessNoClasspath
createTypeAccessNoClasspath
99a3ba6
Fixes INRIA#813 as well.
4322383
No branches or pull requests
In
JDTTreeBuilderHelper#createTypeAccessNoClasspath
the following code is used to calculatesourceEnd
:I'm wondering why you don't use:
instead? I have a case in which
qualifiedNameReference.indexOfFirstFieldBinding
is0
and, therefore, anArrayIndexOutOfBoundsException
is thrown.The text was updated successfully, but these errors were encountered: