|
From: Bruce M. <br...@mc...> - 2003-04-29 13:12:39
|
On Tuesday 29 April 2003 03:52 am, Ken Geis wrote:
> Hi. I'm working with Babeldoc a little, and my company is planning on
> using it in a commercial product. Yes, we understand the GPL, and we
> plan to donate as much code as possible. My first day working with it,
> I found a nasty bug.
>
> In com.babeldoc.core.Named, the toString function reads
>
> public String toString() {
> return new ToStringBuilder(this).
> append("name", this).toString();
> }
>
> This results in an infinite loop and stack overflow error. It should
> clearly be
>
> public String toString() {
> return new ToStringBuilder(this).
> append("name", name).toString();
> }
>
>
> Ken Geis
|