Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2565

Enum <-> String coercion is not symmetric if enum class overrides toString()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.5.0, 5.4.2
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jkemnade Jochen Kemnade
                Reporter:
                jkemnade Jochen Kemnade
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: