Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-358

JexlScript.curry(...) resulting scripts don't evaluate correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3
    • None

    Description

      A script obtained by explicit naming of parameters will not lead to properly evaluated scripts through curry(). Example:

      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
      

      Culprit is evaluation of Closure which are not ASTJexlLambda.

      Attachments

        Activity

          People

            henrib Henri Biestro
            henrib Henri Biestro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: