[forge-issues] [JBoss JIRA] (ROASTER-5) Having method parameters a bit more typed
George Gastaldi (JIRA)
issues at jboss.org
Mon Apr 7 11:08:12 EDT 2014
[ https://issues.jboss.org/browse/ROASTER-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi updated ROASTER-5:
----------------------------------
Status: Closed (was: Pull Request Sent)
Fix Version/s: 2.1.1.Final
(was: 2.x Future)
Resolution: Done
> Having method parameters a bit more typed
> -----------------------------------------
>
> Key: ROASTER-5
> URL: https://issues.jboss.org/browse/ROASTER-5
> Project: Roaster
> Issue Type: Feature Request
> Components: API
> Affects Versions: 2.1.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.1.1.Final
>
>
> I want to create a Bean Validation implementation, that means that the {{isValid}} method takes two parameters. And the only way to add two parameters seems to be by a String
> {code}
> javaClass.addMethod().setPublic().setName("isValid").setReturnType("boolean").setParameters("Number value, ConstraintValidatorContext context").setBody("return false;").addAnnotation(Override.class);
> {code}
> It would be nice to have typed parameters so the import is implicit, and things are a bit more typed :
> {code}
> javaClass.addMethod().setPublic().setName("isValid").setReturnType("boolean").addParameter(Number.class, "value").addParameter(ConstraintValidatorContext.class, "context").setBody("return false;").addAnnotation(Override.class);
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the forge-issues
mailing list