[JBoss JIRA] (ROASTER-26) Can't add comment in the method body
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-26?page=com.atlassian.jira.plugin... ]
George Gastaldi updated ROASTER-26:
-----------------------------------
Steps to Reproduce:
{code}
public static void main(String[] args)
{
JavaClassSource source = Roaster.create(JavaClassSource.class);
source.addMethod().setName("myMethod").setBody("//TODO foo\nreturn null;");
System.out.println(source);
}
{code}
was:
public static void main(String[] args)
{
JavaClassSource source = Roaster.create(JavaClassSource.class);
source.addMethod().setName("myMethod").setBody("//TODO foo\nreturn null;");
System.out.println(source);
}
> Can't add comment in the method body
> ------------------------------------
>
> Key: ROASTER-26
> URL: https://issues.jboss.org/browse/ROASTER-26
> Project: Roaster
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: JDT
> Affects Versions: 2.7.0.Final
> Reporter: Nicolas Challut
> Fix For: 2.x Future
>
>
> If you try to add a comment in a method body, the comment won't be print. Comment are detected like a miswritten code
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months