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

Allow Interpreter to use live values from JexlEngine.Option interface implemented by JexlContext

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Labels:
      None

      Description

      Interpreter caches the current values of JexlEngine.Option in constructor if JexlEngine.Option interface is implemented by the provided JexlContext. This prevents JexlContext from dynamically influencing Interpreter behaviour by adjusting its values during script evaluation. The intention is to implement for example @silent/@verbose @strict/lenient annotations so that selected parts of the script could be evaluated with the desired mode. I think good point is to allow values from other methods of JexlEngine.Option interface such as isCancellable() and getArithmeticMathScale() not to be cached in Interpreter and JexlArithmetic.

        Attachments

          Activity

            People

            • Assignee:
              henrib Henri Biestro
              Reporter:
              dmitri_blinov Dmitri Blinov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: