[ https://issues.apache.org/jira/browse/VELOCITY-825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson resolved VELOCITY-825. ------------------------------------- Resolution: Done Assignee: Claude Brisson Fix Version/s: 2.x The default Uberspector now performs the String -> Enum constant conversion when necessary. > Automatically convert String method arguments to Enum when possible > ------------------------------------------------------------------- > > Key: VELOCITY-825 > URL: https://issues.apache.org/jira/browse/VELOCITY-825 > Project: Velocity > Issue Type: New Feature > Components: Engine > Affects Versions: 1.7 > Reporter: Marius Dumitru Florea > Assignee: Claude Brisson > Fix For: 2.x > > > Would be nice if > $obj.someMethod('VALUE') > would call > obj.someMethod(SomeEnum.VALUE); > when obj has #someMethod(SomeEnum). In other words, if no method is found for > the provided arguments then see if some of the String arguments can be > replaced with Enum constants. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org