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

Hudson commented on TAP5-2565:
------------------------------

FAILURE: Integrated in Jenkins build tapestry-trunk-freestyle #1598 (See 
[https://builds.apache.org/job/tapestry-trunk-freestyle/1598/])
TAP5-2565, TAP5-2496: always use name() when coercing enum values to (jkemnade: 
rev 7368fdc536d5ddc6c050b05bdbe45fea4d9517e1)
* (edit) tapestry-ioc/src/test/groovy/ioc/specs/TypeCoercerSpec.groovy
* (add) tapestry-ioc/src/test/java/com/example/Animal.java
* (edit) 
commons/src/main/java/org/apache/tapestry5/ioc/internal/services/TypeCoercerImpl.java


> Enum <-> String coercion is not symmetric if enum class overrides toString()
> ----------------------------------------------------------------------------
>
>                 Key: TAP5-2565
>                 URL: https://issues.apache.org/jira/browse/TAP5-2565
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.4.1
>            Reporter: Jochen Kemnade
>             Fix For: 5.5.0
>
>
> See TAP5-2496 and TAP5-1331.
> If an enum class overrides {{toString()}}, the coercion is not symmetric 
> because Enum->String uses {{toString()}} and String->Enum uses {{name()}}.
> This breaks {{<t:select />}} when no encoder is specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to