[forge-issues] [JBoss JIRA] (ROASTER-108) SetBody(String) not working correctly.
George Gastaldi (JIRA)
issues at jboss.org
Tue Aug 9 08:42:00 EDT 2016
[ https://issues.jboss.org/browse/ROASTER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi closed ROASTER-108.
-----------------------------------
Fix Version/s: (was: 2.x Future)
Resolution: Rejected
Not a bug. Your code is missing a semicolon.
It should read:
{code}
javaClass.addMethod()
.setPublic()
.setStatic(false)
.setName("setupIAB")
.setReturnTypeVoid()
.setBody("OpenIabHelper.Options.Builder builder = new OpenIabHelper.Options.Builder(); \n\t builder.setStoreSearchStrategy(OpenIabHelper.Options.SEARCH_STRATEGY_INSTALLER);");
{code}
Maybe Roaster should throw an exception if the body is an invalid statement, that's something to be considered in the future versions.
Thanks!
> SetBody(String) not working correctly.
> --------------------------------------
>
> Key: ROASTER-108
> URL: https://issues.jboss.org/browse/ROASTER-108
> Project: Roaster
> Issue Type: Bug
> Components: API
> Affects Versions: 2.19.0.Final
> Environment: Ubuntu 16.04.1 LTS, using Roaster as a Resource while using JavaServlets on Eclipse IDE.
> Reporter: Guilherme Andrade
> Assignee: George Gastaldi
> Priority: Minor
>
> I'm trying to put text into a method body using setBody(String s) but all I get is null when I print getBody of the same method.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the forge-issues
mailing list