This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: LinkedHashMap.removeEldestEntry
- From: Tom Tromey <tromey at redhat dot com>
- To: Thomas Hallgren <thhal at mailblocks dot com>
- Cc: java at gcc dot gnu dot org
- Date: 21 Feb 2005 17:19:30 -0700
- Subject: Re: LinkedHashMap.removeEldestEntry
- References: <cvdpsr$ejf$1@sea.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Thomas" == Thomas Hallgren <thhal@mailblocks.com> writes:
Thomas> I have an implementation of a MRU cache that uses a LinkedHashMap
Thomas> specialization. It overrides the removeEldestEntry method and returns
Thomas> true when the map reaches a certain size. That has no effect it seems
Thomas> since my map just keep growing. Adding an explicit remove to the
Thomas> removeEldestEntry helps (it really should not). I'm using 3.4.2. Is
Thomas> this a known issue?
I haven't heard of it.
Could you make a simple test case? I could easily try it on 4.0 and
see if it works.
Tom