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

Invalid script variable list for nested array/map access

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2, 3.0
    • Labels:
      None

      Description

      On behalf of Tomas Kukosa:
      If the expression contains nested array/map access then the getVariables() method does not return the right value.
      The result of test code below is:

      script: A+B[C]+D[E[F]]+x[y[z]]
      variables: [[A], [C], [B], [D], [x]]

      E, F, y, z variables got lost somewhere.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: