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]

Re: LinkedHashMap.removeEldestEntry


>>>>> "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


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