Commons JXPath
  1. Commons JXPath
  2. JXPATH-39

DynamicPropertyHandler and Collections bug

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0 Final
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: All

      Description

      I possibly noticed a bug concerning dynamic property beans containing collections.

      Consider a bean, which's properties are handled thru a DynamicPropertyHandler.

      When a certain property is a (indexed) collection,
      context.iterate("/<property>") should (so far as I understood) iterate over all
      elements of the collection.
      Instead the Iterator iterates only over the first element.

      The same thing without dynamic properties works of course.

      You reproduce this behaviour by using a Map to store the attributes.

      TX
      Markus

        Activity

        Markus Menner created issue -
        Hide
        Markus Menner added a comment -

        Created an attachment (id=1927)
        Testcase for this bug

        Show
        Markus Menner added a comment - Created an attachment (id=1927) Testcase for this bug
        Hide
        Dmitri Plotnikov added a comment -

        Fixed a problem with DynamicPropertyPointer

        diff -r1.5 DynamicPropertyPointer.java
        196c196
        < return ValueUtils.getLength(getNodeValue());

        > return ValueUtils.getLength(getBaseValue

        Show
        Dmitri Plotnikov added a comment - Fixed a problem with DynamicPropertyPointer diff -r1.5 DynamicPropertyPointer.java 196c196 < return ValueUtils.getLength(getNodeValue()); — > return ValueUtils.getLength(getBaseValue
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 9336 12340228
        Henri Yandell made changes -
        Affects Version/s 1.0 Beta 1 [ 12311649 ]
        Project Commons [ 12310458 ] Commons JXPath [ 12310480 ]
        Component/s JXPath [ 12311120 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Key COM-77 JXPATH-39
        Henri Yandell made changes -
        Affects Version/s 1.0 Beta 1 [ 12311816 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Markus Menner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development