[forge-issues] [JBoss JIRA] (ROASTER-109) Method static modifier not being parsed correctly
George Gastaldi (JIRA)
issues at jboss.org
Wed Aug 10 16:13:00 EDT 2016
[ https://issues.jboss.org/browse/ROASTER-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13277547#comment-13277547 ]
George Gastaldi commented on ROASTER-109:
-----------------------------------------
And the first assertion is correct, your method IS static :)
> 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