LinkedHashMap.removeEldestEntry
Tom Tromey
tromey@redhat.com
Tue Feb 22 09:04:00 GMT 2005
>>>>> "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
More information about the Java
mailing list