This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new c0b4e8829b Review "Keep the wrapped exception in the JSP EL exception
cause chain"
c0b4e8829b is described below
commit c0b4e8829b14371ec92a29a7dfb60cabbb8af72a
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Nov 6 08:43:21 2026 +0000
Review "Keep the wrapped exception in the JSP EL exception cause chain"
Fix the regression in error-page handling while preserving exceptions
that have no cause (the target of the original fix)
---
java/org/apache/jasper/el/JspELException.java | 2 +-
java/org/apache/jasper/el/JspMethodNotFoundException.java | 2 +-
java/org/apache/jasper/el/JspPropertyNotFoundException.java | 2 +-
java/org/apache/jasper/el/JspPropertyNotWritableException.java | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/java/org/apache/jasper/el/JspELException.java
b/java/org/apache/jasper/el/JspELException.java
index 6a28b9ef73..4bc412583b 100644
--- a/java/org/apache/jasper/el/JspELException.java
+++ b/java/org/apache/jasper/el/JspELException.java
@@ -32,6 +32,6 @@ public class JspELException extends ELException {
* @param e the underlying ELException
*/
public JspELException(String mark, ELException e) {
- super(mark + " " + e.getMessage(), e);
+ super(mark + " " + e.getMessage(), e.getCause() == null ? e :
e.getCause());
}
}
diff --git a/java/org/apache/jasper/el/JspMethodNotFoundException.java
b/java/org/apache/jasper/el/JspMethodNotFoundException.java
index 32614f666c..6ea3d39656 100644
--- a/java/org/apache/jasper/el/JspMethodNotFoundException.java
+++ b/java/org/apache/jasper/el/JspMethodNotFoundException.java
@@ -32,6 +32,6 @@ public class JspMethodNotFoundException extends
MethodNotFoundException {
* @param e the underlying MethodNotFoundException
*/
public JspMethodNotFoundException(String mark, MethodNotFoundException e) {
- super(mark + " " + e.getMessage(), e);
+ super(mark + " " + e.getMessage(), e.getCause() == null ? e :
e.getCause());
}
}
diff --git a/java/org/apache/jasper/el/JspPropertyNotFoundException.java
b/java/org/apache/jasper/el/JspPropertyNotFoundException.java
index 3bd7c655ec..5ac3a1b418 100644
--- a/java/org/apache/jasper/el/JspPropertyNotFoundException.java
+++ b/java/org/apache/jasper/el/JspPropertyNotFoundException.java
@@ -32,7 +32,7 @@ public final class JspPropertyNotFoundException extends
PropertyNotFoundExceptio
* @param e The cause exception
*/
public JspPropertyNotFoundException(String mark, PropertyNotFoundException
e) {
- super(mark + " " + e.getMessage(), e);
+ super(mark + " " + e.getMessage(), e.getCause() == null ? e :
e.getCause());
}
}
diff --git a/java/org/apache/jasper/el/JspPropertyNotWritableException.java
b/java/org/apache/jasper/el/JspPropertyNotWritableException.java
index 85185f9e34..36cbfc053c 100644
--- a/java/org/apache/jasper/el/JspPropertyNotWritableException.java
+++ b/java/org/apache/jasper/el/JspPropertyNotWritableException.java
@@ -32,6 +32,6 @@ public class JspPropertyNotWritableException extends
PropertyNotWritableExceptio
* @param e The cause exception
*/
public JspPropertyNotWritableException(String mark,
PropertyNotWritableException e) {
- super(mark + " " + e.getMessage(), e);
+ super(mark + " " + e.getMessage(), e.getCause() == null ? e :
e.getCause());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]