[jira] [Closed] (TAP5-2565) Enum <-> String coercion is not symmetric if enum class overrides toString()

2016-09-22 Thread Jochen Kemnade (JIRA)

 [ 
https://issues.apache.org/jira/browse/TAP5-2565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Kemnade closed TAP5-2565.

Resolution: Fixed

Backported to 5.4.x branch

> 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
>Assignee: Jochen Kemnade
> Fix For: 5.5.0, 5.4.2
>
>
> 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 {{}} when no encoder is specified.



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


[jira] [Closed] (TAP5-2565) Enum <-> String coercion is not symmetric if enum class overrides toString()

2016-09-22 Thread Jochen Kemnade (JIRA)

 [ 
https://issues.apache.org/jira/browse/TAP5-2565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Kemnade closed TAP5-2565.

   Resolution: Fixed
Fix Version/s: 5.5.0

> 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 {{}} when no encoder is specified.



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