[forge-issues] [JBoss JIRA] (FORGE-1224) method.setPackagePrivate() not working

Michael Schwartz (JIRA) jira-events at lists.jboss.org
Thu Oct 3 12:05:02 EDT 2013


    [ https://issues.jboss.org/browse/FORGE-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12809219#comment-12809219 ] 

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


More information about the forge-issues mailing list