Author: kkolinko
Date: Sun Nov 7 09:11:00 2010
New Revision: 1032232
URL: http://svn.apache.org/viewvc?rev=1032232&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50228
Clear the reference to a writer when BodyContentImpl is recycled.
By the way, this calls BodyContentImpl.clear() which recycles the buffer if it
is grown too big. Recycling it early is good.
Modified:
tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java
Modified: tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java?rev=1032232&r1=1032231&r2=1032232&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java (original)
+++ tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java Sun Nov 7
09:11:00 2010
@@ -767,6 +767,7 @@ public class PageContextImpl extends Pag
@Override
public JspWriter popBody() {
+ outs[depth].setWriter(null);
depth--;
if (depth >= 0) {
out = outs[depth];
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]