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

ClassCastException in PrecedingOrFollowingContext

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: