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

Allow setting of access modifiers in JMods #406

Closed
Tomas-Kraus opened this issue Aug 18, 2007 · 6 comments
Closed

Allow setting of access modifiers in JMods #406

Tomas-Kraus opened this issue Aug 18, 2007 · 6 comments

Comments

@Tomas-Kraus
Copy link
Member

It would be nice if these methods could be added to https://jaxb2-
sources.dev.java.net/source/browse/checkout/jaxb2-sources/jaxb-
ri/codemodel/src/com/sun/codemodel/JMods.java

public void setPrivate()

{ setFlag( JMod.PUBLIC, false ); setFlag( JMod.PROTECTED, false ); setFlag( JMod.PRIVATE, true ); }

public void setProtected()

{ setFlag( JMod.PUBLIC, false ); setFlag( JMod.PROTECTED, true ); setFlag( JMod.PRIVATE, false ); }

public void setPublic()

{ setFlag( JMod.PUBLIC, true ); setFlag( JMod.PROTECTED, false ); setFlag( JMod.PRIVATE, false ); }

public void setFinal(boolean newValue)

{ setFlag( JMod.FINAL, newValue ); }

Environment

Operating System: All
Platform: All

Affected Versions

[2.1.4]

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
Reported by prophet36

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
Was assigned to snajper

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
prophet36 said:
I've written a plugin which relies on this patch. At the moment I need a local
copy of JMods.java, which is not ideal.

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
Marked as fixed on Thursday, April 14th 2011, 8:33:45 pm

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JAXB-406

@Tomas-Kraus
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants