This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libgcj/11728] HashMap serialization does not work


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();


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