java.lang.StackOverflowError
From: Asad Khan (uoft_cstutor_at_yahoo.com)
Date: 10/27/03
- Next message: hiwa: "Re: java.util.regex - combining paragraphs separated by blank line"
- Previous message: SPG: "Re: Help trace run time error"
- Next in thread: Phil...: "Re: java.lang.StackOverflowError"
- Reply: Phil...: "Re: java.lang.StackOverflowError"
- Reply: SPG: "Re: java.lang.StackOverflowError"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 26 Oct 2003 23:59:59 GMT
I have the following method inside I class,
public boolean equals(Object o) {
return (this.equals(o));
}
but when i call this method by "foo.equals(bum)" where foo and bum are some
objects, I get a java.lang.StackOverflowError??
I kinda know why its happening; I think it calls the same equals method and
keep going round and round. But, this is what I have to do, without renaming
the method, so what's the way around it?
Thanks.
- Next message: hiwa: "Re: java.util.regex - combining paragraphs separated by blank line"
- Previous message: SPG: "Re: Help trace run time error"
- Next in thread: Phil...: "Re: java.lang.StackOverflowError"
- Reply: Phil...: "Re: java.lang.StackOverflowError"
- Reply: SPG: "Re: java.lang.StackOverflowError"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|