classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: FYI: Fix PR libgcj/20273


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: Fix PR libgcj/20273
Date: 29 May 2005 19:54:34 -0600

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  <address@hidden>

        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;
             }
         }
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]