diff options
author | Michael Koch <konqueror@gmx.de> | 2005-05-30 02:01:15 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-05-30 02:01:15 +0000 |
commit | ad821074cbd282194b570e63a09b4690d644303e (patch) | |
tree | 35df9861504f0176bb24aa6dd52314a882537ba0 /libjava/java/util | |
parent | 7b9997f307bfa2f696d5bec0da54e11b13876cd3 (diff) | |
download | gcc-ad821074cbd282194b570e63a09b4690d644303e.tar.gz |
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
Diffstat (limited to 'libjava/java/util')
-rw-r--r-- | libjava/java/util/LinkedHashMap.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/java/util/LinkedHashMap.java b/libjava/java/util/LinkedHashMap.java index f58cf3fe70e..d18d6f8e4a4 100644 --- a/libjava/java/util/LinkedHashMap.java +++ b/libjava/java/util/LinkedHashMap.java @@ -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; } } } |