[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
java.io.File patch
From: |
Jeroen Frijters |
Subject: |
java.io.File patch |
Date: |
Sat, 15 Feb 2003 10:06:08 +0100 |
Hi,
Attached is a patch for object serialization, to use the proper classes
when getting and setting fields in the object (and when calling
readObject/writeObject). Also some minor changes to make caching the
Field and Method objects possible in the future.
I submitted the patch to Savannah as 1107.
Thanks to Mark Wielaard for his assistance.
Change log:
2003-02-13 Jeroen Frijters <address@hidden>
* java/io/ObjectInputStream.java
(readObject): cleaned up the class hierarchy loop
(readFields(Object,ObjectStreamField[],boolean)):
changed argument list to Object,ObjectStreamClass,
moved callReadMethod code up into readObject and
added Class argument to all setXxxField calls
(callReadMethod): changed Class argument to
ObjectStreamClass to be consistent with
ObjectOutputStream and to facilitate caching
the Method in the future
(setBooleanField): added Class argument
(setByteField): added Class argument
(setCharField): added Class argument
(setDoubleField): added Class argument
(setFloatField): added Class argument
(setIntField): added Class argument
(setLongField): added Class argument
(setShortField): added Class argument
(setObjectField): added Class argument
* java/io/ObjectOutputStream.java
(writeObject): cleaned up the class hierarchy loop
(defaultWriteObject): call writeFields with new
argument list
(writeFields(Object,ObjectStreamField[],boolean):
changed argument list to Object,ObjectStreamClass,
moved callWriteMethod up into writeObject and
added Class argument to all getXxxField calls
(callWriteMethod): added ObjectStreamClass argument
to be able to get the proper class to call getMethod
on (each class can have (or not have) its own writeObject
method)
(getBooleanField): added Class argument
(getByteField): added Class argument
(getCharField): added Class argument
(getDoubleField): added Class argument
(getFloatField): added Class argument
(getIntField): added Class argument
(getLongField): added Class argument
(getShortField): added Class argument
(getObjectField): added Class argument
* java/io/ObjectStreamClass.java
(hasReadMethod): added method to facilitate caching
the Method object in the future
Regards,
Jeroen
objio.patch
Description: objio.patch