Commons JXPath
  1. Commons JXPath
  2. JXPATH-16

JXPathException: Exception trying to create xpath

    Details

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

      Operating System: All
      Platform: All

      Description

      Although I provide a valid path to createPath() I get an exception. I provided a
      testcase.

        Activity

        Hide
        Markus Menner added a comment -

        Created an attachment (id=2511)
        Testcase

        Show
        Markus Menner added a comment - Created an attachment (id=2511) Testcase
        Hide
        Dmitri Plotnikov added a comment -

        The issue had to do with a bug in SimplePathInterpreter, which did not accept
        the "self::" axis. At the same time, pointers often produce xpaths with the
        following syntax: "/.[@name='foo']". So, the path produced by a pointer could
        not in those cases be used to recreate that same pointer.

        This is now fixed - SimplePathInterpreter now understands "self::"

        Show
        Dmitri Plotnikov added a comment - The issue had to do with a bug in SimplePathInterpreter, which did not accept the "self::" axis. At the same time, pointers often produce xpaths with the following syntax: "/. [@name='foo'] ". So, the path produced by a pointer could not in those cases be used to recreate that same pointer. This is now fixed - SimplePathInterpreter now understands "self::"

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development