This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jelly.git


The following commit(s) were added to refs/heads/master by this push:
     new f5852a01 Use Java 6 API for exception construction
f5852a01 is described below

commit f5852a01c552d47c807cbfc475dc82cfbaaaa0e0
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Feb 15 14:17:07 2025 -0500

    Use Java 6 API for exception construction
---
 .../java/org/apache/commons/jelly/expression/xpath/XPathExpression.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/commons/jelly/expression/xpath/XPathExpression.java
 
b/core/src/main/java/org/apache/commons/jelly/expression/xpath/XPathExpression.java
index 76979ce1..e85f9540 100644
--- 
a/core/src/main/java/org/apache/commons/jelly/expression/xpath/XPathExpression.java
+++ 
b/core/src/main/java/org/apache/commons/jelly/expression/xpath/XPathExpression.java
@@ -95,7 +95,7 @@ public class XPathExpression extends ExpressionSupport 
implements VariableContex
             if (context.isSuppressExpressionExceptions())
                 log.error("Error constructing xpath", e);
             else
-               throw (IllegalStateException)new IllegalStateException 
(e.getMessage()).initCause(e);
+               throw (IllegalStateException)new IllegalStateException 
(e.getMessage(), e);
         }
 
         return null;

Reply via email to