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

Add support for growable arrays (ArrayLists)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • 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

              henrib Henri Biestro
              sebb Sebb
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: