Since I wasn't able to get the latest version of Torque to compile, I will
have to fix the bug in my older revision for now...  This won't really help
people, but this is all I can do for now.  I posted the details of this
problem with subject "MethodResultCache.java won't compile".  I'll let you
know of the progress on the infinite loop bug.

-- Mathieu

-----Original Message-----
From: Mathieu Frenette [mailto:[EMAIL PROTECTED]]
Sent: March 28, 2002 2:18 PM
To: [EMAIL PROTECTED]
Subject: 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:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to