This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]