Commons JXPath
  1. Commons JXPath
  2. JXPATH-31

Problem with Pointer asPath method using dynamic beans

    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: All
      Platform: All

      Description

      Hi,

      I noticed a strange behaviour of asPath, when I use dynamic beans (with
      DynamicPropertyHandler).

      Considering a dynamic property "properties", which contains a Vector with 5
      Objects (Strings in my case), using iteratePointers (works now ) returns a
      strange path using the asPath method on the returned pointers:

      [@name='properties'][1]
      [@name='properties'][2]
      [@name='properties'][3]
      [@name='properties'][4]
      [@name='properties'][5]

      This path leads (of course) to an error, when I invoke the context.getValue
      method with it. I attached a testcase.

      Also I noticed, that in some cases im my application the "index" begins with 2
      instead of 1. But I could not reproduce this in a simple testcase. It looks like
      this:

      [@name='properties'][2]
      [@name='properties'][3]
      [@name='properties'][4]
      [@name='properties'][5]

      Perhaps you'll face this behaviour too.

      Thanx
      Markus

        Activity

        Markus Menner created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 9482 12340234
        Henri Yandell made changes -
        Key COM-83 JXPATH-31
        Component/s JXPath [ 12311120 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Project Commons [ 12310458 ] Commons JXPath [ 12310480 ]
        Affects Version/s 1.0 Beta 1 [ 12311649 ]
        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