DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=20492>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=20492

Problems with XPath expression //* (incorrect result and does not function after 
Templates object is serialized)





------- Additional Comments From [EMAIL PROTECTED]  2004-06-21 17:14 -------
Thanks for the test cases, it turns out that there is a bug in the 
DescendantIterator class. For string comparison, it is safier to use 
String.equals() method, since a new String value is created during 
deserialization. e.g.
public final static String WILD = "*";
String x = WILD;
WILD == x is true in most of the case, except after deserialization. 

Should always use equals() to do string comparison

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to