[JBoss JIRA] (ROASTER-109) Method static modifier not being parsed correctly
by Kevin Mian Kraiker (JIRA)
[ https://issues.jboss.org/browse/ROASTER-109?page=com.atlassian.jira.plugi... ]
Kevin Mian Kraiker edited comment on ROASTER-109 at 8/10/16 4:22 PM:
---------------------------------------------------------------------
I wish I could, but the tests do run OK. What I have is:
I'm parsing some classes, automating code changes in them, and then generating an Interface for them.
These classes may have static methods, and sometimes the static method is being translated into the interface, despite having
{code:java}
if (!m.isPublic() || m.isConstructor() || m.isStatic())
continue;
{code}
The only logical explanation would be because I'm casting a MethodSource<JavaClassSource> into a MethodSource<JavaInterfaceSource>, but then again, why does the method KEEP the static property in the generated compilation unit?
was (Author: mismatch):
I wish I could, but the tests do run OK. What I have is:
I'm parsing some classes, automating code changes in them, and then generating an Interface for them.
These classes may have static methods, and sometimes the static method is being translated into the interface, despite having
{code:java}
if (!m.isPublic() || m.isConstructor() || m.isStatic())
continue;
{code}
The only logical explanation would be because I'm casting a MethodSource<JavaClassSource> into a MethodSource<JavaInterfaceSource>
> Method static modifier not being parsed correctly
> -------------------------------------------------
>
> Key: ROASTER-109
> URL: https://issues.jboss.org/browse/ROASTER-109
> Project: Roaster
> Issue Type: Bug
> 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)