[forge-issues] [JBoss JIRA] (FORGE-1254) calling setStatic(true) on a static method add keyword "static" twice

Salem Elrahal (JIRA) issues at jboss.org
Thu Jan 9 22:31:32 EST 2014


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

Salem Elrahal commented on FORGE-1254:
--------------------------------------

Hello Team,

I have implemented, what I believe to be, a reasonable fix for this issue. I don't think any methods should have duplicate modifiers, unless I'm missing something.

https://github.com/forge/java-parser/pull/9
                
> calling setStatic(true) on a static method add keyword "static" twice
> ---------------------------------------------------------------------
>
>                 Key: FORGE-1254
>                 URL: https://issues.jboss.org/browse/FORGE-1254
>             Project: Forge
>          Issue Type: Bug
>          Components: Parsers / File Manipulation
>    Affects Versions: 1.4.1.Final
>            Reporter: Michael Schwartz
>            Priority: Minor
>             Fix For: 1.x Future, 2.x Future
>
>
> Testclass:
> {code:java}
> class Tester() {
>   static void testit() {
>   }
> }
> {code}
> Forge:
> {code:java}
> Method<?> method = entityclass.getMethod("testit");
> method.setStatic(true);
> // save the class
> {code}
> yields to:
> {code}
> static static void testit() {}
> {code}

--
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