tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r451231 - /tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java
Date Fri, 29 Sep 2006 11:09:42 GMT
Author: remm
Date: Fri Sep 29 04:09:42 2006
New Revision: 451231

URL: http://svn.apache.org/viewvc?view=rev&rev=451231
Log:
- Try/catch around the clear buffer, as if the writer was closed the original exception will
not be displayed.

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java?view=diff&rev=451231&r1=451230&r2=451231
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java Fri Sep 29 04:09:42
2006
@@ -3276,7 +3276,7 @@
         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



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


Mime
View raw message