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 2023/02/13 14:25:13 UTC
[commons-jexl] branch master updated: JEXL-392: allow script/lambda and expressions as default module source
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 2839f02e JEXL-392: allow script/lambda and expressions as default module source
2839f02e is described below
commit 2839f02e39efd6c336534f7ca6446c85fa450901
Author: henrib <he...@apache.org>
AuthorDate: Mon Feb 13 15:25:04 2023 +0100
JEXL-392: allow script/lambda and expressions as default module source
---
src/main/java/org/apache/commons/jexl3/internal/Engine.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/jexl3/internal/Engine.java b/src/main/java/org/apache/commons/jexl3/internal/Engine.java
index fba342d8..81b3e2ce 100644
--- a/src/main/java/org/apache/commons/jexl3/internal/Engine.java
+++ b/src/main/java/org/apache/commons/jexl3/internal/Engine.java
@@ -528,8 +528,8 @@ public class Engine extends JexlEngine {
functor = processor.processModule(this, info, module, moduleSrc);
} else {
final Object moduleObject = createExpression(info, moduleSrc).evaluate(context);
- functor = moduleObject instanceof JexlScript
- ? ((JexlScript) moduleObject).execute(context)
+ functor = moduleObject instanceof Script
+ ? ((Script) moduleObject).execute(context)
: moduleObject;
}
if (functor != null) {