You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/07/02 16:12:37 UTC
DO NOT REPLY [Bug 21276] New: -
XObject.toString() produces strange behavior
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21276>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21276
XObject.toString() produces strange behavior
Summary: XObject.toString() produces strange behavior
Product: XalanJ2
Version: CurrentCVS
Platform: PC
OS/Version: Windows NT/2K
Status: UNCONFIRMED
Severity: Normal
Priority: Other
Component: org.apache.xpath
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: aaronlabella@hotmail.com
When using xpaths and printing out an XObject using the toString() method, two
successive calls will not work... ie:
XObject xval = XPathAPI.eval(<yournode>,<yourstring>);
System.err.println(xval.toString());
System.err.println(xval.toString());
The first will print okay, the second will not.
You wouldnt think that the toString method should move pointers, but tracing
the code back to NodeSequence, something strange is happening in the method:
/**
* @see DTMIterator#item(int)
*/
public int item(int index)
with the pointers. This behavior may be needed for something else, but if its
not needed in the toString() method, maybe that should be modified to simply
get the current node and not move any pointers?
sincerely,
Aaron LaBella