]
George Gastaldi commented on ROASTER-109:
-----------------------------------------
You are using {{setSynchronized}}. Try {{setStatic}} instead
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...