From abbe8c14f2578384b1c7ae2c8747d6a5473a25db Mon Sep 17 00:00:00 2001 From: remm Date: Fri, 29 Sep 2006 11:09:42 +0000 Subject: [PATCH] - Try/catch around the clear buffer, as if the writer was closed the original exception will not be displayed. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@451231 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/jasper/compiler/Generator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index bb20079e5..537bd7202 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -3276,7 +3276,7 @@ class Generator { out.printil("out = _jspx_out;"); out.printil("if (out != null && out.getBufferSize() != 0)"); out.pushIndent(); - out.printil("out.clearBuffer();"); + out.printil("try { out.clearBuffer(); } catch (java.io.IOException e) {}"); out.popIndent(); out -- 2.11.0