ObjectStreamClass

Tom Tromey tromey@redhat.com
Wed Dec 18 16:30:00 GMT 2002


>>>>> ">" == Dhek Bhun Kho <bhun@chello.nl> writes:

>> I got it fixed, note that it will not run on gcj 3.2. I know the
>> fix works because I tested it using gcj-3.3.jar and the sunvm after
>> writing a serialized file with the current implementation, then
>> running a readObject with the fixed one (sunvm).

This really interoperates?  Interesting...

>> *** BigInteger.java	2002-12-17 17:20:17.000000000 +0100
>> --- BigInteger.java.old	2002-12-17 16:30:53.000000000 +0100

FYI, use `diff OLD NEW' -- this diff is in reverse order.  When you
read a lot of diffs, like I do, getting a reversed one makes it harder
to figure out what is going on, like reading upside down.

>> !     fields.put("bitCount",-1);
>> !     fields.put("bitLength",-1);
>> !     fields.put("firstNonzeroByteNum",-2);
>> !     fields.put("lowestSetBit",-2);

Does the JDK just ignore these fields?

Tom



More information about the Java-patches mailing list