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

Invalid script variable list for nested array/map access

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.1.2, 3.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: