Tapestry 5
  1. Tapestry 5
  2. TAP5-1331

EnumValueEncoder should identify legal values when a non-matching string is passed to it for conversion

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.3
    • Fix Version/s: 5.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      java.lang.IllegalArgumentException
      No enum const class demo.pages.Index$Demo.xyz

      • java.lang.Enum.valueOf(Enum.java:196)
      • org.apache.tapestry5.util.EnumValueEncoder.toValue(EnumValueEncoder.java:46)
      • org.apache.tapestry5.util.EnumValueEncoder.toValue(EnumValueEncoder.java:23)
      • org.apache.tapestry5.internal.services.ContextValueEncoderImpl.toValue(ContextValueEncoderImpl.java:47)
      • $ContextValueEncoder_12bf46d86ac.toValue($ContextValueEncoder_12bf46d86ac.java)
      • org.apache.tapestry5.internal.URLEventContext.get(URLEventContext.java:43)
      • org.apache.tapestry5.internal.services.ComponentEventImpl.coerceContext(ComponentEventImpl.java:83)
      • org.apache.tapestry5.internal.transform.PageActivationContextWorker$1.handleEvent(PageActivationContextWorker.java:84)
      • org.apache.tapestry5.internal.services.InternalClassTransformationImpl$11.advise(InternalClassTransformationImpl.java:2384)
      • org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86)
      • demo.pages.Index.dispatchComponentEvent(Index.groovy)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development