Commit e863ccf3 by Bryce McKinlay Committed by Bryce McKinlay

LinkedHashMap (addEntry): Call remove() with key argument, not the HashEntry.

2005-02-18  Bryce McKinlay  <mckinlay@redhat.com>

	* java/util/LinkedHashMap (addEntry): Call remove() with key argument,
	not the HashEntry. Reported by Jean-Marie White.

From-SVN: r95263
parent 39609077
2005-02-18 Bryce McKinlay <mckinlay@redhat.com>
* java/util/LinkedHashMap (addEntry): Call remove() with key argument,
not the HashEntry. Reported by Jean-Marie White.
2005-02-18 Tom Tromey <tromey@redhat.com>
PR java/20056:
......
......@@ -412,7 +412,7 @@ public class LinkedHashMap extends HashMap
e.next = buckets[idx];
buckets[idx] = e;
if (callRemove && removeEldestEntry(root))
remove(root);
remove(root.key);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment