https://issues.apache.org/bugzilla/show_bug.cgi?id=46354





--- Comment #6 from Konstantin Kolinko <knst.koli...@gmail.com>  2009-01-03 
18:33:11 PST ---
Created an attachment (id=23077)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to