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

Assignment to Indexed property is broken in 3.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.0
    • 2.1.1, 3.0
    • None

    Description

      In JEXL 2.1.1 the assignment of XML attribute to org.w3c.dom.Element via setAttribute(java.lang.String name, java.lang.String value) method worked as suggested - indexed property was resolvable and assignable. In JEXL 3.0 this is broken - unsolvable property '....'

      By peeping to Uberspect.java I noticed that the following method

      public JexlPropertySet getPropertySet(final Object obj, final Object identifier, Object arg)

      does not contain any references to IndexedType class to resolve indexed property when assigning. As it works correctly in 2.1 I do not see any reason for this to be as by design, so I classify this as a bug.

      The example of JEXL script, sorry I haven't figure out how to provide full test case here:

      x = xml:child(doc, 'ConfigSet'); x.attribute.ConfigSetNo = '123'.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmitri_blinov Dmitri Blinov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: