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

Exception using asPath()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.0 Final
    • None
    • None
    • Operating System: All
      Platform: All

    • 9912

    Description

      I probably noticed a bug, when I use dynamic beans and iteratePointers() and
      then the asPath() method on each pointer.

      Assuming the toplevel (dynamic) bean has 3 attributes att1, att1, att3 and att3
      is a nested bean whit attribute called 'nested'.

      The following works:

      context.getValue("/att3/nested");

      Whereas this throws an exception:

      Iterator it = context.iteratePointers("/att3");
      Pointer ptr = it.next();
      context.getValue(ptr.asPath()+"/nested");

      I provided a testcase.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mm@teraspect.de Markus Menner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: