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

Empty array property setting fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 3.0
    • None

    Description

      Suppose a bean has an array property setter method (e.g, public void setStrarr(String []) ).
      If I use an expression like this with an empty array, then it fails with the error message, "inaccessible or unknown property strarr".

      // example expression
      bean.strarr = [ ];

      Attachments

        1. jexl3-empty-array-patch-4.txt
          9 kB
          Woonsan Ko
        2. jexl3-empty-array-patch-3.txt
          10 kB
          Woonsan Ko
        3. jexl3-empty-array-patch-2.txt
          10 kB
          Woonsan Ko
        4. jexl3-empty-array-patch.txt
          8 kB
          Woonsan Ko
        5. jexl2-empty-array-patch-4.txt
          8 kB
          Woonsan Ko
        6. jexl2-empty-array-patch-3.txt
          9 kB
          Woonsan Ko
        7. jexl2-empty-array-patch-2.txt
          9 kB
          Woonsan Ko
        8. jexl2-empty-array-patch.txt
          7 kB
          Woonsan Ko

        Activity

          People

            Unassigned Unassigned
            woon_san Woonsan Ko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: