Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4982

StatelessChecker: add helpful information to find stateful behavior (patch included)

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4.0
    • Fix Version/s: 6.5.0
    • Component/s: wicket-devutils
    • Labels:
      None

      Description

      When the stateless check fails, one has to search for the offending (stateful) behavior manually, which can be tedious in complex components (containing multiple behaviors, maybe even spread across classes through inheritance)

      Attached patch adds to the exception message the class name(s) of stateful Behaviors(s), if any.

      Note: I did not test the code, since my project is not running on the wicket sources. Should be working fine, though.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              pparson Peter Parson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: