This is an automated email from the ASF dual-hosted git repository. henrib pushed a commit to branch jexl-3.6 in repository https://gitbox.apache.org/repos/asf/commons-scxml.git
commit b09fa7778ee8701f03367339e0fce6699b999f7b Author: Henrib <[email protected]> AuthorDate: Mon Dec 1 11:34:22 2025 +0100 SCXML: update to JEXL 3.6.0; - update test script since 'switch' has become a keyword; --- pom.xml | 2 +- .../java/org/apache/commons/scxml2/env/jexl/wildcard-01.xml | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 6befb27f..ef7b937b 100644 --- a/pom.xml +++ b/pom.xml @@ -162,7 +162,7 @@ <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-jexl3</artifactId> - <version>3.5.0</version> + <version>3.6.0</version> <optional>true</optional> </dependency> <dependency> diff --git a/src/test/java/org/apache/commons/scxml2/env/jexl/wildcard-01.xml b/src/test/java/org/apache/commons/scxml2/env/jexl/wildcard-01.xml index ae95817e..01d894b6 100644 --- a/src/test/java/org/apache/commons/scxml2/env/jexl/wildcard-01.xml +++ b/src/test/java/org/apache/commons/scxml2/env/jexl/wildcard-01.xml @@ -22,15 +22,19 @@ initial="state1"> <state id="state1"> <onentry> - <cs:var name="switch" expr="4" /> + <!-- since JEXL 3.6, 'switch' is a keyword, so we use 'swtch' instead --> + <cs:var name="swtch" expr="4" /> </onentry> <!-- We'll trigger 'foo.bar.baz' event, and therefore, must end up in state4 --> - <transition event="*" cond="switch eq 2" target="state2"/> - <transition event="foo.*" cond="switch eq 3" target="state3"/> - <transition event="foo.bar.*" cond="switch eq 4" target="state4"/> + <transition event="*" cond="swtch eq 2" target="state2"/> + <transition event="foo.*" cond="swtch eq 3" target="state3"/> + <transition event="foo.bar.*" cond="swtch eq 4" target="state4"/> + <!-- If something goes wrong, ensure we end up in the error state and not loop forever --> + <transition event="error.execution" target="error" /> </state> <final id="state2"/> <final id="state3"/> <final id="state4"/> + <final id="error"/> </scxml>
