You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Mathieu Frenette <ma...@freeborders.com> on 2002/03/28 20:17:39 UTC

Infinite loop in ComboKey(String) constructor

Hello all!

In fact, the bug is in setValue(String keys), which gets called by the
ComboKey(String) constructor.  The problem is trivial:  setValue() tries to
iterate through the tokens making up the key, but the While construct
doesn't have any statement for advancing to the next token.  So the same
token is added over and over to the tmpKeys list, until the VM eventualy
runs out of memory.

I guess not many people actually have used that method because it is sure to
run into an infinite loop.  I'll try to fix it and post a patch today.

Regards,

-- Mathieu



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>