[Bug libgcj/11728] HashMap serialization does not work

yozh at mx1 dot ru gcc-bugzilla@gcc.gnu.org
Wed Jul 30 18:42:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11728



------- Additional Comments From yozh at mx1 dot ru  2003-07-30 18:42 -------
Subject: Re:  I wrote patch.

This very simple patch fixes bug.

--- HashMap.java.orig	Wed Jul 30 21:40:51 2003
+++ HashMap.java	Wed Jul 30 22:23:07 2003
@@ -808,6 +808,7 @@
     // Read and use capacity, followed by key/value pairs.
     buckets = new HashEntry[s.readInt()];
     int len = s.readInt();
+    size = len;
     while (len-- > 0)
       {
         Object key = s.readObject();



More information about the Gcc-bugs mailing list