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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.2.0
    • 5.2.0
    • tapestry-core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: