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(ThisAccess): the type access associated to a this must be the type containing the this #1008

Merged
merged 1 commit into from
Nov 28, 2016

Conversation

monperrus
Copy link
Collaborator

fixes #1006.

Note that #1006 was neither in clone, nor in pretty-printer, but in the model.

This is the problem when implicit=true, the model can be incorrect and one does not see it.

@@ -85,4 +90,26 @@ public void testGetAllMethods() throws Exception {
assertEquals(1, methods.stream().filter(method -> "foo".equals(method.getSimpleName())).count());
}

@Test
public void testCloneMethodUsingjlObjectMethods() throws Exception {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does the jl mean in this test name? testCloneMethodUsingjlObjectMethods

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe java.lang.Object?

Copy link
Contributor

Choose a reason for hiding this comment

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

Correct :-)

…e containing the this

fixes INRIA#1006.

Note that INRIA#1006 was neither in clone, nor in pretty-printer, but in the model.

This is the problem when implicit=true, the model can be incorrect and one does not see it.
@monperrus
Copy link
Collaborator Author

fixed test name

@tdurieux tdurieux merged commit 49d6e68 into INRIA:master Nov 28, 2016
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.

Issue when cloning methods that contain invocations to j.l.Object methods
4 participants