You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2011/04/03 22:06:05 UTC

[jira] [Commented] (TAP5-98) The TypeCoercer should be able to coerce String to Enum types, even without a specific contribution

    [ https://issues.apache.org/jira/browse/TAP5-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015201#comment-13015201 ] 

Hudson commented on TAP5-98:
----------------------------

Integrated in tapestry-5.2-freestyle #304 (See [https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/304/])
    TAP5-98: The TypeCoercer should be able to coerce String to Enum types, even without a specific contribution
TAP5-98: Move StringToEnumCoercion from tapestry-core to tapestry-ioc


> The TypeCoercer should be able to coerce String to Enum types, even without a specific contribution
> ---------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-98
>                 URL: https://issues.apache.org/jira/browse/TAP5-98
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-ioc
>    Affects Versions: 5.0.15
>            Reporter: Alexander Gavrilov
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.3.0
>
>
> In the current implementation to allow coersion form string literal to Enum we need to add contribution to the TypeCoercer. This is working. But this coersion can be performed by default using just Enum.valueOf (Class, String), so there are not required to register new coersion for every used enum type. In this case whe are lost the case insensibility of enum coersions, but if this is meaningfull for everyone we can still use contributed coersions, and if no one is found fallback do the default. Enum.valueOf

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira