[
https://issues.jboss.org/browse/FORGE-1224?page=com.atlassian.jira.plugin...
]
Michael Schwartz commented on FORGE-1224:
-----------------------------------------
I found the Problem. I had an iterator via resource.getJavaSource().getMembers(). This
iterator works but does not allow the original file to modify. (setPrivate(), setPublic(),
setPackagePrivate() all not working).
When I use
((JavaClass) JavaParser.parse(JavaClass.class,
this.resource.getResourceInputStream())).getMembers()
instead it works as desired.
I cannot decide if this is an issue or not but the alternative code works like a charm.
regards, Mike
method.setPackagePrivate() not working
--------------------------------------
Key: FORGE-1224
URL:
https://issues.jboss.org/browse/FORGE-1224
Project: Forge
Issue Type: Bug
Components: Parsers / File Manipulation
Affects Versions: 1.3.3.Final
Reporter: Michael Schwartz
Priority: Minor
Fix For: 1.x Future
method.setPackagePrivate() is not working if the method is already set to public
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira