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

ClassCastException in PrecedingOrFollowingContext

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3
    • 1.3
    • None

    Description

      in PrecedingOrFollowingContext at line 151
      I believe the code should be changed, from

      it = (PropertyIterator) stack.peek();

      to

      it = (NodeIterator) stack.peek();

      Test case:

      count(//preceding::node())

      <root><a1><b1/><b2/></a1><a2/></root>

      Attachments

        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: