You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by he...@apache.org on 2022/02/04 09:52:45 UTC

[commons-jexl] branch master updated: JEXL-357: tracking CI failure on JDK17/Windows;

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

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


The following commit(s) were added to refs/heads/master by this push:
     new ea904f9  JEXL-357: tracking CI failure on JDK17/Windows;
ea904f9 is described below

commit ea904f9f9c6a4a5a555bd71178f4ca71da8205c0
Author: henrib <he...@apache.org>
AuthorDate: Fri Feb 4 10:52:39 2022 +0100

    JEXL-357: tracking CI failure on JDK17/Windows;
---
 src/test/java/org/apache/commons/jexl3/ScriptCallableTest.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/jexl3/ScriptCallableTest.java b/src/test/java/org/apache/commons/jexl3/ScriptCallableTest.java
index 6ae895b..476963c 100644
--- a/src/test/java/org/apache/commons/jexl3/ScriptCallableTest.java
+++ b/src/test/java/org/apache/commons/jexl3/ScriptCallableTest.java
@@ -397,7 +397,7 @@ public class ScriptCallableTest extends JexlTestCase {
     }
 
     /**
-     * Redundant test with previous ones but impervious to JEXL engine configuation.
+     * Redundant test with previous ones but impervious to JEXL engine configuration.
      * @throws Exception if there is a regression
      */
     private void runInterrupt(final JexlEngine jexl) throws Exception {
@@ -567,7 +567,11 @@ public class ScriptCallableTest extends JexlTestCase {
         try {
             result = script.execute(ctxt, true);
         } catch (final Exception xany) {
-            Assert.fail(xany.toString());
+            if (xany.getCause() != null) {
+                Assert.fail(xany.getCause().toString());
+            } else {
+                Assert.fail(xany.toString());
+            }
         }
         Assert.assertEquals("cancelled", result);