Javadoc for AbortWithHttpStatusException class constructor says 'true' when it
should say 'false'
-------------------------------------------------------------------------------------------------
Key: WICKET-2897
URL: https://issues.apache.org/jira/browse/WICKET-2897
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4.7
Reporter: Ronald Tetsuo Miura
Priority: Trivial
Javadoc for <code>AbortWithHttpStatusException</code> class constructor states:
<pre>
* @param statusCodeOptional
* If <b><u>true</u></b> and http status could not be set,
an IllegalStateException will be thrown
</pre>
But the code does:
<pre>
if (!statusCodeOptional)
{
throw new IllegalStateException(
"This exception can only be thrown from
within request processing cycle");
}
</pre>
Obviously, the exception is thrown only if the flag
<code>statusCodeOptional</code> is set to <code>false</code>, not true.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.