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

Add support for growable arrays (ArrayLists)

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      JEXL now has fixed arrays. Trying to access a non-existent entry generates an Exception.

      Might be useful to allow for the creation and manipulation of growable arrays, e.g. using ArrayList.

      Writing to a non-existent entry should just create the value; reading should return null and empty.

      This would need a new syntax.

      Perhaps:

      list=[1,2,3,...]
      and
      emptyList=[...]

      I did wonder about using (), but that would clash with method invocation.

      Other ideas welcome!

        Attachments

        1. JEXL-79.patch
          6 kB
          Henri Biestro
        2. JEXL-79.patch
          10 kB
          Henri Biestro
        3. JEXL-79.patch
          6 kB
          Henri Biestro

          Issue Links

            Activity

              People

              • Assignee:
                henrib Henri Biestro
                Reporter:
                sebb@apache.org Sebb
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: