tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46354] LIMIT_BUFFER setting causes arraycopy errors
Date Sun, 04 Jan 2009 02:33:12 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46354





--- Comment #6 from Konstantin Kolinko <knst.kolinko@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message