java.lang.StackOverflowError
From: Asad Khan (uoft_cstutor_at_yahoo.com)
Date: 10/27/03
- Previous message: Roedy Green: "Re: sending objects over sockets?"
- Next in thread: Brad BARCLAY: "Re: java.lang.StackOverflowError"
- Reply: Brad BARCLAY: "Re: java.lang.StackOverflowError"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Oct 2003 00:00:20 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.
- Previous message: Roedy Green: "Re: sending objects over sockets?"
- Next in thread: Brad BARCLAY: "Re: java.lang.StackOverflowError"
- Reply: Brad BARCLAY: "Re: java.lang.StackOverflowError"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|