tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Courtney" <ja...@elementalsecurity.com>
Subject RE: ArrayIndexOutOfBoundsException in ResourceCache.java
Date Wed, 02 Aug 2006 00:25:52 GMT
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:remm@apache.org] 
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: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail:
dev-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message