[ http://issues.apache.org/jira/browse/XALANJ-1534?page=all ]
Brian Minchau updated XALANJ-1534:
----------------------------------
Version: Latest Development Code
(was: 2.5)
> NodeSet.getLength() makes nextNode point to end
> -----------------------------------------------
>
> Key: XALANJ-1534
> URL: http://issues.apache.org/jira/browse/XALANJ-1534
> Project: XalanJ2
> Type: Bug
> Components: XPath
> Versions: Latest Development Code
> Environment: Operating System: Windows NT/2K
> Platform: PC
> Reporter: Bill Callahan
> Assignee: Xalan Developers Mailing List
>
> org.apache.xpath.NodeSet maintains its own internal pointer to what the next
> node is. A call to getLength() changes this to point to the last node in the
> list. This is unexpected behavior.
> Workaround: reset() will point it back to the first node in the list, if
> that's
> what you want.
> Fix: Current position should be cached at start of the call and restored at
> the
> end of the call.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]