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

Error in loop of NamespaceResolver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • None
    • None
    • all

    Description

      In org.apache.commons.jxpath.ri.NamespaceResolver#String getPrefix(NodePointer pointer, String namespaceURI)

      The loop variable is supposed to be changed in this way:

      currentPointer = pointer.getParent();

      but I think is a typo, it should be :

      currentPointer = currentPointer.getParent();

      I encountered an endless loop while calling toString() on a pointer

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vivodamichele@hotmail.com Michele Vivoda
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: