ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Top Ten Cool New Features of Java 2SE 1.4
Subject:   Failure to override
Date:   2004-03-07 21:27:23
From:   Trackback from http://www.davidflanagan.com/blog/000014.html anonymous2
This code is supposed to implement a least-recently-used (LRU) cache on top of the java.util.LinkedHashMap class. Can you spot the error? Hint: the class functions as a cache, but fails the LRU part.