Commit ad821074 by Michael Koch Committed by Tom Tromey

re PR libgcj/20273 (LinkedHashMap breaks linked list when access() is called)

2005-05-29  Michael Koch  <konqueror@gmx.de>

	PR libgcj/20273:
	* java/util/LinkedHashMap.java (access): Set 'root.pred'.

From-SVN: r100347
parent 7b9997f3
2005-05-29 Michael Koch <konqueror@gmx.de>
PR libgcj/20273:
* java/util/LinkedHashMap.java (access): Set 'root.pred'.
2005-05-27 Ziga Mahkovec <ziga.mahkovec@klika.si>
* ChangeLog: Fix typo.
......
/* LinkedHashMap.java -- a class providing hashtable data structure,
mapping Object --> Object, with linked list traversal
Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 2001, 2002, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
......@@ -186,6 +186,7 @@ public class LinkedHashMap extends HashMap
succ = null;
pred = root.pred;
pred.succ = this;
root.pred = this;
}
}
}
......
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