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 method calls on annotations #388

Merged

Conversation

tdurieux
Copy link
Collaborator

No description provided.

@tdurieux tdurieux force-pushed the fix-method-call-on-annotation-class branch from f1036ad to 09d2617 Compare October 20, 2015 13:48
CtClass<Object> aClass = factory.Class().get(AnnotationIntrospection.class);
CtMethod<?> constructor = aClass.getMethod("m");
CtStatement statement = constructor.getBody().getStatement(1);
assertEquals("annotation.equals(null)", statement.toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

What was the result of statement.toString() before your patch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The output was: annotation.equals()

@tdurieux tdurieux force-pushed the fix-method-call-on-annotation-class branch from 09d2617 to e15f148 Compare October 26, 2015 08:49
@GerardPaligot GerardPaligot merged commit d2dc355 into INRIA:master Oct 26, 2015
@tdurieux tdurieux deleted the fix-method-call-on-annotation-class branch November 23, 2015 15:50
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