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: visibility of enum values #1999

Merged
merged 2 commits into from
May 21, 2018

Conversation

pvojtechovsky
Copy link
Collaborator

by comparing of Spoon model created from sources and model created from java runtime, I found that Enum constants have wrong visibility modifiers, when created from sources. This PR fixes it.

I haven't found any Java language specification rule related to visibility of enum constants, but it looks like the visibility is inherited from visibility of enum type + they are always static and final.

@pvojtechovsky pvojtechovsky changed the title fix: visibility of enum values review: fix: visibility of enum values May 20, 2018
@monperrus monperrus merged commit 1ec88d5 into INRIA:master May 21, 2018
@surli surli mentioned this pull request Jun 25, 2018
@pvojtechovsky pvojtechovsky deleted the fixPrivateEnumValue branch September 1, 2018 07:35
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