This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: LinkedHashMap.removeEldestEntry
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: Thomas Hallgren <thhal at mailblocks dot com>, java at gcc dot gnu dot org
- Date: Mon, 21 Feb 2005 21:45:30 -0500
- Subject: Re: LinkedHashMap.removeEldestEntry
- References: <cvdpsr$ejf$1@sea.gmane.org>
Thomas Hallgren wrote:
I might have encontered a bug. I Can't find any mention of it in
bugzilla and my GCJ is not the latest so I'll ask here before filing.
I have an implementation of a MRU cache that uses a LinkedHashMap
specialization. It overrides the removeEldestEntry method and returns
true when the map reaches a certain size. That has no effect it seems
since my map just keep growing. Adding an explicit remove to the
removeEldestEntry helps (it really should not). I'm using 3.4.2. Is
this a known issue?
Yes, this is a known bug that was recently fixed. You can either upgrade
to GCC head or apply this patch:
http://gcc.gnu.org/ml/java-patches/2005-q1/msg00466.html
Bryce