luehe 2004/04/27 14:40:21 Modified: jasper2/src/share/org/apache/jasper JspC.java Log: Fixed Bugzilla 28604 ("JspC should not display the whole stack trace of errors") Print rootcause's stack trace only if rootcause is different from JasperException Revision Changes Path 1.72 +3 -3 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java Index: JspC.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java,v retrieving revision 1.71 retrieving revision 1.72 diff -u -r1.71 -r1.72 --- JspC.java 27 Apr 2004 18:04:37 -0000 1.71 +++ JspC.java 27 Apr 2004 21:40:21 -0000 1.72 @@ -739,8 +739,6 @@ && ((JasperException) rootCause).getRootCause() != null) { rootCause = ((JasperException) rootCause).getRootCause(); } - log.error(Localizer.getMessage("jspc.error.generalException", - file), rootCause); throw je; } catch (Exception e) { @@ -863,7 +861,9 @@ && ((JasperException) rootCause).getRootCause() != null) { rootCause = ((JasperException) rootCause).getRootCause(); } - rootCause.printStackTrace(); + if (rootCause != je) { + rootCause.printStackTrace(); + } throw je; } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]