classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cp-patches] New serialization fix


From: Jeroen Frijters
Subject: RE: [cp-patches] New serialization fix
Date: Sat, 4 Dec 2004 11:02:45 +0100

Guilhem Lavaux wrote:
> It appears that GNU Classpath's ObjectInputStream is not sufficiently 
> strict.

I agree.

> Here is a patch to fix it in pure java.

It's not a good idea to re-introduce reflection into the per-object path
of serialization. That slows it down enormously.

I'd like to propose something like the attached patch. It removes the
need to the constructor lookuk for every object.

The patch doesn't include the native side, because I haven't written
that (don't need it for IKVM) but I'm happy to write it if someone else
will test it.

Regards,
Jeroen

Attachment: serial.patch
Description: serial.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]