[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:11:00 EDT 2016


Kevin Mian Kraiker created ROASTER-109:
------------------------------------------

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



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




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


More information about the forge-issues mailing list