[forge-issues] [JBoss JIRA] (ROASTER-109) Method static modifier not being parsed correctly

Kevin Mian Kraiker (JIRA) issues at jboss.org
Wed Aug 10 16:14:00 EDT 2016


     [ https://issues.jboss.org/browse/ROASTER-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Mian Kraiker updated ROASTER-109:
---------------------------------------
    Description: For some reason, when parsing a complete unit, sometimes static methods don't have the "isStatic" reading properly...  (was: 
{code:java}

   @Test
   public void testStaticMethod() throws Exception
   {
      MethodSource<JavaClassSource> method = Roaster.create(JavaClassSource.class).addMethod(
               "public static void test(){}");
      Assert.assertFalse(method.isStatic());
      method.setSynchronized(true);
      Assert.assertTrue(method.isStatic());
      method.setSynchronized(false);
      Assert.assertFalse(method.isStatic());
   }
{code}

Fails on first assertion, static modifier isn't being parsed correctly...
)


> Method static modifier not being parsed correctly
> -------------------------------------------------
>
>                 Key: ROASTER-109
>                 URL: https://issues.jboss.org/browse/ROASTER-109
>             Project: Roaster
>          Issue Type: Feature Request
>          Components: API
>    Affects Versions: 2.19.0.Final
>            Reporter: Kevin Mian Kraiker
>
> For some reason, when parsing a complete unit, sometimes static methods don't have the "isStatic" reading properly...



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the forge-issues mailing list