LinkedHashMap.removeEldestEntry
Thomas Hallgren
thhal@mailblocks.com
Tue Feb 22 08:52:00 GMT 2005
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?
Regards,
Thomas Hallgren
More information about the Java
mailing list