[ https://issues.apache.org/jira/browse/JEXL-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Biestro resolved JEXL-358. -------------------------------- Resolution: Fixed Commit [0e18632|https://github.com/apache/commons-jexl/commit/0e186325b2ee03dcc3e5d96aafff1f70b276ccd6] > 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 > Priority: Major > 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)