ObjectStreamClass

Dhek Bhun Kho bhun@chello.nl
Tue Dec 17 06:43:00 GMT 2002


Hi Per
Op ma 16-12-2002, om 07:49 schreef Per Bothner:
> Adding all those extra fields just for serialization
> destroyed the whole point of my design.
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). 


-- exception:
Exception in thread "main" java.lang.NullPointerException
   at _ZN4java2io17ObjectStreamClass9setFieldsEPNS_4lang5ClassE
(/usr/lib/libgcj.so.3.0.0)
   at _ZN4java2io17ObjectStreamClassC1EPNS_4lang5ClassE
(/usr/lib/libgcj.so.3.0.0)
   at _ZN4java2io17ObjectStreamClass6lookupEPNS_4lang5ClassE
(/usr/lib/libgcj.so.3.0.0)
   at
_ZN4java2io17ObjectStreamClass22getObjectStreamClassesEPNS_4lang5ClassE
(/usr/lib/libgcj.so.3.0.0)
   at _ZN4java2io17ObjectInputStream10readObjectEv
(/usr/lib/libgcj.so.3.0.0)
   at read.main(java.lang.String[]) (Unknown Source)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BigInteger.diff
Type: text/x-patch
Size: 4037 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20021217/1e8489f9/attachment.bin>


More information about the Java-patches mailing list