Tapestry 5
  1. Tapestry 5
  2. TAP5-823

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Hide
        Igor Drobiazko added a comment -

        Last fix for 2009.

        Show
        Igor Drobiazko added a comment - Last fix for 2009.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development