[kaffe] java.lang.ArrayIndexOutOfBoundsException thrown by Stack.push()

Dalibor Topic robilad at yahoo.com
Fri Mar 14 06:00:01 PST 2003


Hi Mark,

--- Mark J Roberts <mjr at znex.org> wrote:
> Stack.push() should not be throwing this exception.
> Looks like an
> obvious bug. Any ideas?

Looks like a race condition bug to me. Could you make
Vector.addElement synchronized, and see if that helps?

My assumption is that between the size() call in
addElement and the call to insertElementAt the Vector
size changes so we get the bug.

cheers,
dalibor topic


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com




More information about the kaffe mailing list