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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2.3
    • 5.3
    • tapestry-core
    • 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)

      Attachments

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              hlship Howard Lewis Ship
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: