Skip to content
New issue

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

Wrong range calculation on ArrayType with multiple dimensions #3818

Closed
jlerbsc opened this issue Dec 27, 2022 · 0 comments · Fixed by #3820
Closed

Wrong range calculation on ArrayType with multiple dimensions #3818

jlerbsc opened this issue Dec 27, 2022 · 0 comments · Fixed by #3820

Comments

@jlerbsc
Copy link
Collaborator

jlerbsc commented Dec 27, 2022

In this example the end of column is 6 but should be 8. The bug is probably located in ArrayType.wrapInArrayTypes(..)

@Test
void test0() {
	String src = "Long[][]";
	Type at = StaticJavaParser.parseType(src);
	at.getRange().get().withEndColumn(8);
}
jlerbsc added a commit that referenced this issue Dec 27, 2022
Fix: issue #3818 Wrong range calculation on ArrayType with multiple d…
mernst added a commit to smillst/stubparser that referenced this issue Jan 31, 2023
…pe with multiple dimensions"

This reverts commit e6a1fdd.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant