|
Created an attachment (id=8431)
The xsl file to apply to 1.xml Just let a potential XString object initialize itself in the equals() method of
XString, e.g. like: public boolean equals(XMLString obj2) { if (!obj2.hasString()) { // **** new code start **** this.str(); // **** new code end **** return obj2.equals(this); } else return str().equals(obj2.toString()); } I don't know about performance for this test. We got this Stackoverflow several times. Created an attachment (id=10055)
Bug replication I ran into this bug doing XSLT processing both in Cocoon and in Ant. My fix was to remove the
"optimization" in XString.equals so that it reads: public boolean equals(XMLString obj2) { return str().equals(obj2.toString()); } This was particularly nasty for me because Apple includes this class in /System/Library/Frameworks/ JavaVM.framework/Versions/1.4.2/Classes/classes.jar, which is in the baseclasspath and is tricky to override. I just happened to notice that all four of these issues (
Attaching a patch that I believe resolves this problem.
I have reviewed Henry Zongaro's patch an approve it.
Applied patch to Subversion repository.
Changing affected version to 2.7, and fixed version to 2.7.1
Would the originator of this issue please verify that this issue is fixed in the 2.7.1 release, by adding a comment to this issue, so that we can close this issue.
A lack of response by February 1, 2008 will be taken as consent that we can close this resolved issue. Regards, Brian Minchau |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
An XML file to be processed with 1.xsl