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
This commit is contained in:
Michael Koch 2005-05-30 02:01:15 +00:00 committed by Tom Tromey
parent 7b9997f307
commit ad821074cb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -1,6 +1,6 @@
/* 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;
}
}
}