You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Bruno Dorel <bd...@wanadoo.fr> on 2007/01/04 18:06:37 UTC

Possible leek of memory in ExtendedKeystore

Hi all,
The method removeObjectFromCache(Object key) remove  nothing from caches 
due to the fact that the key.toString() method  used several times in 
this méthod refer to the java.lang.Object.toString()  method  . Change 
 removeObjectFromCache(Object key)  to removeObjectFromCache(Uri  key) 
it compiles well and will remove objects  from your caches  and your GC 
will tanks you
You should have a look to the Uri.equals(Object obj)  method and change 
return  as :  return  uri.equals((Uri)obj).uri)  Obj.toString is ambigus


Hope this can Help


B DOREL