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

fix: position of nested type arguments like List<List<?>> #2142

Merged
merged 2 commits into from
Jun 30, 2018

Conversation

pvojtechovsky
Copy link
Collaborator

fix of another problem found by Sniper mode tests

@pvojtechovsky
Copy link
Collaborator Author

It is ready for merge from my point of view

@@ -126,6 +125,10 @@ public void testPositionParameterTypeReference() throws Exception {
CtTypeReference<?> field3Type = foo.getField("field3").getType();
//this probably points to an bug in JDT. But we have no workaround in Spoon, which handles spaces and comments too
assertEquals("List<T // */ >\n\t/*// */>", contentAtPosition(classContent, field3Type.getPosition()));

CtTypeReference<?> field4Type = foo.getField("field4").getType();
//this probably points to an bug in JDT. But we have no workaround in Spoon, which handles spaces and comments too
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you copy the comment on purpose?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for pointing to that. It was not intentional

@tdurieux tdurieux merged commit e63bb99 into INRIA:master Jun 30, 2018
@pvojtechovsky pvojtechovsky deleted the fixPosNestedTypeArgs branch June 30, 2018 19:38
@surli surli mentioned this pull request Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants