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

Hudson commented on TAP5-2496:
------------------------------

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


> Inconsistent behavior of EnumValueEncoder 
> ------------------------------------------
>
>                 Key: TAP5-2496
>                 URL: https://issues.apache.org/jira/browse/TAP5-2496
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.4
>            Reporter: Jochen Kemnade
>            Assignee: Jochen Kemnade
>             Fix For: 5.4
>
>
> EnumValueEncoder uses {{java.lang.Enum.name()}} in {{toClient(E)}} but uses 
> {{typeCoercer.coerce(clientValue, enumType)}} in {{toValue(String 
> clientValue)}}.
> I have a custom coercer in my project and this causes the value encoder to be 
> unable to decode the client-side value back to a server-side value.
> I think we should remove {{EnumValueEncoderFactory}} altogether because 
> {{TypeCoercedValueEncoderFactory}} should do its job just fine.



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

Reply via email to