[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: API
> Affects Versions: 2.7.0.Final
> Reporter: Nicolas Challut
>
> 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
[JBoss JIRA] (ROASTER-26) Can't add comment in the method body
by Nicolas Challut (JIRA)
[ https://issues.jboss.org/browse/ROASTER-26?page=com.atlassian.jira.plugin... ]
Nicolas Challut updated ROASTER-26:
-----------------------------------
Steps to Reproduce:
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);
}
was:
{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}
> 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: API
> Affects Versions: 2.7.0.Final
> Reporter: Nicolas Challut
>
> 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
[JBoss JIRA] (FORGE-1944) Create Junit commands
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1944:
--------------------------------------
Summary: Create Junit commands
Key: FORGE-1944
URL: https://issues.jboss.org/browse/FORGE-1944
Project: Forge
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 2.7.0.Final
Reporter: George Gastaldi
Fix For: 2.x Future
Create a command to create a JUnit test case and setup Junit in a project
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1877) Default implementation of .equals fails with Proxy objects
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-1877?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III closed FORGE-1877.
-------------------------------------
Fix Version/s: 2.7.2.Final
(was: 2.x Future)
Resolution: Done
Implemented unwrapping to .equals() method by default.
> Default implementation of .equals fails with Proxy objects
> ----------------------------------------------------------
>
> Key: FORGE-1877
> URL: https://issues.jboss.org/browse/FORGE-1877
> Project: Forge
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Furnace (Container)
> Reporter: Jess Sightler
> Assignee: Lincoln Baxter III
> Fix For: 2.7.2.Final
>
>
> proxyObjectA.equals(proxyObjectA) returns false
> This appears to be because the default .equals method ends up being called on the unwrapped (non-proxied) proxyObjectA, but it is passed the wrapped (proxied) object as the parameter.
> One workaround is to always call Proxies.unwrap before calling .equals, but this is error-prone. Perhaps the argument to .equals should be unwrapped by default if it is wrapped?
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months