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

Message about incompatible return type of a render phase method is misleading

    Details

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

      Description

      Returning an incompatible type in a render phase method results in a following exception:

      "The return value from a render phase event method was not compatible the expected return type of java.lang.Boolean. You should change the method to return the correct type."

      The message of the exception is misleading because org.apache.tapestry5.internal.structure.RenderPhaseEventHandler also accepts RenderCommand and Renderable as return types. The message should be fixed.

        Attachments

          Activity

            People

            • Assignee:
              igor.drobiazko Igor Drobiazko
              Reporter:
              igor.drobiazko Igor Drobiazko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: