This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: Fix PR libgcj/20273


I'm checking this in on the 4.0 branch, the trunk, and Classspath.
Note that the trunk compiler miscompiles LinkedHashMap at the
moment.  This results in crashes.  I'll file this soon.

I put the test case from the PR into Mauve.
The patch is from Michael Koch.  I don't know why, but it has just
been sitting in bugzilla for a while...

Tom

Index: ChangeLog
from  Michael Koch  <konqueror@gmx.de>

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

Index: java/util/LinkedHashMap.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/LinkedHashMap.java,v
retrieving revision 1.6
diff -u -r1.6 LinkedHashMap.java
--- java/util/LinkedHashMap.java 19 Feb 2005 03:18:20 -0000 1.6
+++ java/util/LinkedHashMap.java 30 May 2005 01:57:38 -0000
@@ -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 @@
               succ = null;
               pred = root.pred;
               pred.succ = this;
+              root.pred = this;
             }
         }
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]