This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
LinkedHashMap.removeEldestEntry
- From: Thomas Hallgren <thhal at mailblocks dot com>
- To: java at gcc dot gnu dot org
- Date: Tue, 22 Feb 2005 00:15:56 +0100
- Subject: LinkedHashMap.removeEldestEntry
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