luehe 2004/04/13 15:55:51 Modified: jasper2/src/share/org/apache/jasper/compiler JspDocumentParser.java jasper2/src/share/org/apache/jasper/runtime JspRuntimeLibrary.java PageContextImpl.java Log: Added support for exception chaining Revision Changes Path 1.78 +4 -4 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java Index: JspDocumentParser.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java,v retrieving revision 1.77 retrieving revision 1.78 diff -u -r1.77 -r1.78 --- JspDocumentParser.java 17 Mar 2004 19:23:03 -0000 1.77 +++ JspDocumentParser.java 13 Apr 2004 22:55:50 -0000 1.78 @@ -1068,10 +1068,10 @@ ctxt.getClassLoader().loadClass(handlerClassName); } catch (Exception e) { throw new SAXException( - Localizer.getMessage( - "jsp.error.loadclass.taghandler", - handlerClassName, - qName)); + Localizer.getMessage("jsp.error.loadclass.taghandler", + handlerClassName, + qName), + e); } } 1.31 +1 -1 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspRuntimeLibrary.java Index: JspRuntimeLibrary.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspRuntimeLibrary.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- JspRuntimeLibrary.java 30 Mar 2004 19:18:43 -0000 1.30 +++ JspRuntimeLibrary.java 13 Apr 2004 22:55:50 -0000 1.31 @@ -528,7 +528,7 @@ method.invoke (bean, new Object[] {tmpval}); } } catch (Exception ex) { - throw new JasperException ("error in invoking method"); + throw new JasperException ("error in invoking method", ex); } } 1.60 +5 -2 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java Index: PageContextImpl.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v retrieving revision 1.59 retrieving revision 1.60 diff -u -r1.59 -r1.60 --- PageContextImpl.java 9 Apr 2004 16:35:12 -0000 1.59 +++ PageContextImpl.java 13 Apr 2004 22:55:50 -0000 1.60 @@ -645,8 +645,11 @@ try { out.clear(); } catch (IOException ex) { - throw new IllegalStateException( - Localizer.getMessage("jsp.error.attempt_to_clear_flushed_buffer")); + IllegalStateException ise = + new IllegalStateException(Localizer.getMessage( + "jsp.error.attempt_to_clear_flushed_buffer")); + ise.initCause(ex); + throw ise; } // Make sure that the response object is not the wrapper for include
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]