geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1229030 - /geronimo/specs/trunk/geronimo-jsp_2.2_spec/src/main/java/javax/servlet/jsp/JspException.java
Date Mon, 09 Jan 2012 04:57:35 GMT
Author: gawor
Date: Mon Jan  9 04:57:35 2012
New Revision: 1229030

URL: http://svn.apache.org/viewvc?rev=1229030&view=rev
Log:
GERONIMO-6257: JspException does not chain root exception correctly

Modified:
    geronimo/specs/trunk/geronimo-jsp_2.2_spec/src/main/java/javax/servlet/jsp/JspException.java

Modified: geronimo/specs/trunk/geronimo-jsp_2.2_spec/src/main/java/javax/servlet/jsp/JspException.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jsp_2.2_spec/src/main/java/javax/servlet/jsp/JspException.java?rev=1229030&r1=1229029&r2=1229030&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jsp_2.2_spec/src/main/java/javax/servlet/jsp/JspException.java
(original)
+++ geronimo/specs/trunk/geronimo-jsp_2.2_spec/src/main/java/javax/servlet/jsp/JspException.java
Mon Jan  9 04:57:35 2012
@@ -24,9 +24,6 @@ package javax.servlet.jsp;
 
 public class JspException extends Exception {
 
-    private Throwable rootCause;
-
-
     /**
      * Construct a JspException.
      */
@@ -67,8 +64,7 @@ public class JspException extends Except
      */
     
     public JspException(String message, Throwable rootCause) {
-	super(message);
-	this.rootCause = rootCause;
+	super(message, rootCause);
     }
 
 
@@ -76,14 +72,8 @@ public class JspException extends Except
      * Constructs a new JSP exception when the JSP 
      * needs to throw an exception and include a message
      * about the "root cause" exception that interfered with its
-     * normal operation.  The exception's message is based on the localized
-     * message of the underlying exception.
+     * normal operation. 
      *
-     * <p>This method calls the <code>getLocalizedMessage</code> method
-     * on the <code>Throwable</code> exception to get a localized exception
-     * message. When subclassing <code>JspException</code>, 
-     * this method can be overridden to create an exception message 
-     * designed for a specific locale.
      *
      * @param rootCause 	the <code>Throwable</code> exception
      * 				that interfered with the JSP's
@@ -93,8 +83,7 @@ public class JspException extends Except
      */
 
     public JspException(Throwable rootCause) {
-	super(rootCause.getLocalizedMessage());
-	this.rootCause = rootCause;
+	super(rootCause);
     }
 
     
@@ -106,8 +95,7 @@ public class JspException extends Except
      *				that caused this JSP exception
      *
      */
-    
     public Throwable getRootCause() {
-	return rootCause;
+	return getCause();
     }
 }



Mime
View raw message