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

review: Fix: bug related with TypeReference generics in noclasspath #1609

Merged
merged 7 commits into from
Oct 17, 2017

Conversation

surli
Copy link
Collaborator

@surli surli commented Oct 16, 2017

No description provided.

return this.jdtTreeBuilder.getFactory().Type().createReference(CharOperation.toString(ref.getParameterizedTypeName()));
CtTypeReference result = this.jdtTreeBuilder.getFactory().Type().createReference(res.getQualifiedName());
result.setActualTypeArguments(res.getActualTypeArguments());
return result;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tdurieux could you review this piece of code: you introduce the condition in #1480 to fix another bug

Copy link
Collaborator

Choose a reason for hiding this comment

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

Your patch is invalid, it brokes my test (and my test is good)

Copy link
Collaborator

Choose a reason for hiding this comment

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

the bug is in getQualifiedName of jdt in my testcase

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Your patch is invalid, it brokes my test (and my test is good)

Yeah, I saw that. Still working on it, I come back to you when tests are passing, I was a bit too confident on the first trial ;)

@surli surli changed the title WiP: bug related with import generics in noclasspath review: Fix: bug related with TypeReference generics in noclasspath Oct 16, 2017

@Test
public void testTypeReferenceWithGenerics() throws Exception {
final Launcher launcher = new Launcher();
Copy link
Collaborator

Choose a reason for hiding this comment

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

contract


@Test
public void testImportWithGenerics() throws IOException {
final Launcher launcher = new Launcher();
Copy link
Collaborator

Choose a reason for hiding this comment

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

contract line:

@surli
Copy link
Collaborator Author

surli commented Oct 17, 2017

Ready to merge @monperrus

@monperrus monperrus merged commit e620e69 into INRIA:master Oct 17, 2017
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.

3 participants