Vincent4486 opened a new pull request, #935:
URL: https://github.com/apache/tomcat/pull/935
In the `org.apache.jasper.runtime.JspWriterImpl` class, the Javadoc for the
constructor stated that an IllegalArgumentException is thrown when sz <= 0, but
the implementation only throws when sz < 0. Updated the documentation to match
the actual behavior of the method.
Code that throws the exception:
```
public JspWriterImpl(ServletResponse response, int sz, boolean autoFlush) {
super(sz, autoFlush);
if (sz < 0) {
throw new
IllegalArgumentException(Localizer.getMessage("jsp.error.negativeBufferSize"));
}
...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]