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 2004/01/19 15:06:27 UTC

DO NOT REPLY [Bug 13851] - java.lang.StackOverflowError in XString.equals()

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=13851>.
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=13851

java.lang.StackOverflowError in XString.equals()





------- Additional Comments From gries_o@java-concepts.com  2004-01-19 14:06 -------
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.