tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46354] LIMIT_BUFFER setting causes arraycopy errors
Date Sun, 04 Jan 2009 02:33:12 GMT

--- Comment #6 from Konstantin Kolinko <>  2009-01-03 18:33:11
PST ---
Created an attachment (id=23077)
 --> (
patch for BodyContentImpl class of tc6.0.x

I think that the straightforward way to fix this is to remove the private
bufferSizeSave field and the trick from the #setWriter() method and to
overwrite the #getBufferSize() method.

The bufferSize field is just declared in JspWriter and is not used for
calculations neither there nor in BodyContent class, nor the JSP 2.1 spec
requires any calculations from them (all methods except the #getBufferSize()
getter are abstract). All the calculations are implemented in BodyContentImpl.

Thus the attached patch. It fixes the issue.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message