Henri Biestro created JEXL-358:
----------------------------------
Summary: JexlScript.curry(...) resulting scripts don't evaluate
correctly
Key: JEXL-358
URL: https://issues.apache.org/jira/browse/JEXL-358
Project: Commons JEXL
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Henri Biestro
Assignee: Henri Biestro
Fix For: 3.3
A script obtained by explicit naming of parameters will not lead to properly
evaluated scripts through curry(). Example:
{code:java}
final JexlScript base = jexl.createScript("var t = x + y + z; return t", "x",
"y", "z");
final JexlScript script = base.curry(5);
script.execute(context, 15, 25); // leads to an error
{code}
Culprit is evaluation of Closure which are not ASTJexlLambda.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)