incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r609650 - /incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
Date Mon, 07 Jan 2008 15:58:49 GMT
Author: fmeschbe
Date: Mon Jan  7 07:58:48 2008
New Revision: 609650

URL: http://svn.apache.org/viewvc?rev=609650&view=rev
Log:
Use getRootCause because ServletException might be properly setup for Exception chaining

Modified:
    incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java

Modified: incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java?rev=609650&r1=609649&r2=609650&view=diff
==============================================================================
--- incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
(original)
+++ incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
Mon Jan  7 07:58:48 2008
@@ -51,8 +51,8 @@
             // rethrow as is
             throw se;
         } catch (ServletException se) {
-            if (se.getCause() != null) {
-                throw new SlingException(se.getMessage(), se.getCause());
+            if (se.getRootCause() != null) {
+                throw new SlingException(se.getMessage(), se.getRootCause());
             }
             throw new SlingException(se);
         }



Mime
View raw message