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:
parent
7b9997f307
commit
ad821074cb
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue