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 for https://github.com/INRIA/spoon/issues/793 #794

Merged
merged 2 commits into from
Aug 19, 2016
Merged

fix for https://github.com/INRIA/spoon/issues/793 #794

merged 2 commits into from
Aug 19, 2016

Conversation

fedorov-s-n
Copy link
Contributor

Generating values() and valueOf() methods on request. Methods are not accessible through getMethods(), because they aren't declared, but are accessible through getAllMethods()

CtEnum e = launcher.getFactory().Enum().create("spoon.test.reference.EnumE");
CtTypeReference correctParent = launcher.getFactory().Type().createReference(java.lang.Enum.class);
assertEquals(correctParent, e.getReference().getSuperclass());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you format this?

@monperrus monperrus merged commit 9266242 into INRIA:master Aug 19, 2016
@monperrus
Copy link
Collaborator

thanks a lot for this contribution

@tdurieux tdurieux mentioned this pull request Sep 19, 2016
surli added a commit to surli/spoon that referenced this pull request Jun 22, 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.

3 participants