This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libgcj2: ObjectInputStream.readObject() calls constructors
- From: Tom Tromey <tromey at redhat dot com>
- To: 121636 at bugs dot debian dot org
- Cc: java at gcc dot gnu dot org
- Date: 08 Dec 2001 12:32:38 -0700
- Subject: Re: libgcj2: ObjectInputStream.readObject() calls constructors
- References: <15376.52013.632006.597315@gargle.gargle.HOWL>
- Reply-to: tromey at redhat dot com
>> The implementation of ObjectInputStream.readObject() in this version
>> of libgcj calls the constructor of the serialize object it is reading.
>> Sun's implementation does not do this, nor (I think) did earlier
>> versions of libgcj. Below is a sample program which prints "foo" once
>> with javac, but twice with gcj/libgcj.
This bug also exists in the gcj CVS trunk. I've written a patch which
I am testing. I will check it in as soon as I'm satisfied with it.
The fix will appear in gcj 3.1.
Tom