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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.4.1
    • 5.5.0, 5.4.2
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: