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

Javadoc for AbortWithHttpStatusException class constructor says 'true' when it should say 'false'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.4.7
    • 1.4.10, 1.5-M1
    • wicket

    Description

      Javadoc for AbortWithHttpStatusException class constructor states:

      • @param statusCodeOptional
      • If true and http status could not be set, an IllegalStateException will be thrown

      But the code does:

      if (!statusCodeOptional)

      { throw new IllegalStateException( "This exception can only be thrown from within request processing cycle"); }

      Obviously, the exception is thrown only if the flag statusCodeOptional is set to false, not true.

      Attachments

        Activity

          People

            jthomerson Jeremy Thomerson
            ronaldtm Ronald Tetsuo Miura
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: