You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2016/07/20 12:05:20 UTC
[jira] [Resolved] (VELOCITY-825) Automatically convert String
method arguments to Enum when possible
[ 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-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org