You coded the modification methods that way but the read method (lookup) is not.
I'll take a few minutes to try and create a test case but my other work will prevent me spending too much time on it. I'll certainly submit a patch with the bug. Thanks to all! Jamey -----Original Message----- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 5:16 PM To: Tomcat Developers List Subject: Re: ArrayIndexOutOfBoundsException in ResourceCache.java James Courtney wrote: > /* new code */ > CacheEntry cacheEntry = null; > CacheEntry[] currentCache = cache; > ... > int pos = find(currentCache, name); > if ((pos != -1) && (name.equals(currentCache[pos].name))) { > cacheEntry = currentCache[pos]; > } I think I should have coded it that way. Rémy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]