You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/02/15 19:16:52 UTC

(commons-jelly) branch master updated: Use Java 6 API for exception construction

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 626a0842 Use Java 6 API for exception construction
626a0842 is described below

commit 626a0842d01503de46388e977af2bf2b959e0685
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 15 14:16:47 2025 -0500

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

diff --git a/core/src/main/java/org/apache/commons/jelly/expression/jexl/JexlExpression.java b/core/src/main/java/org/apache/commons/jelly/expression/jexl/JexlExpression.java
index 4e13348a..de55d7e2 100644
--- a/core/src/main/java/org/apache/commons/jelly/expression/jexl/JexlExpression.java
+++ b/core/src/main/java/org/apache/commons/jelly/expression/jexl/JexlExpression.java
@@ -84,7 +84,7 @@ public class JexlExpression extends ExpressionSupport {
         			throw (RuntimeException)e;
         		if (e instanceof IllegalStateException)
         			throw (IllegalStateException )e;
-            	throw (IllegalStateException)new IllegalStateException (e.getMessage()).initCause(e);
+            	throw (IllegalStateException)new IllegalStateException (e.getMessage(), e);
         	}
         }
     }