Uploaded image for project: 'Commons JXPath'
  1. Commons JXPath
  2. JXPATH-47

"setValue" method broken ?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0 Final
    • None
    • None
    • Operating System: other
      Platform: Other

    • 9036

    Description

      Hi

      Using filtering attributes with "setValue" method doesn't seem to work. For
      example :

      context.getPointer("/employeeList[firstName='Dmitri']/firstName").setValue
      ("NewDmitri");

      The new value is cached into the pointer object, but the property writer method
      is not invoked, so the bean is not modified. It works well with non filtered
      path.

      Method "ValueUtils.setValue(Object bean, PropertyDescriptor propertyDescriptor,
      Object value)" shoudn't be called instead of "ValueUtils.setValue(Object
      collection, int index, Object value)" ?

      Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jpochat@sopragroup.com Jérôme Pochat
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: