aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorJeroen Frijters <jeroen@sumatra.nl>2003-03-14 12:54:38 +0100
committerMark Wielaard <mark@gcc.gnu.org>2003-03-14 11:54:38 +0000
commit70e2e8dc1dcf67876829f1ff69fe77258613394b (patch)
tree43d8921b8292c787208a61bc7776888adfb3900e /gcc/cppinit.c
parenta721a60143b225f902f1d65324b6f9f9067b84c3 (diff)
downloadgcc-70e2e8dc1dcf67876829f1ff69fe77258613394b.zip
gcc-70e2e8dc1dcf67876829f1ff69fe77258613394b.tar.gz
gcc-70e2e8dc1dcf67876829f1ff69fe77258613394b.tar.bz2
ObjectInputStream.java (readObject): Cleaned up the class hierarchy loop.
2003-02-14 Jeroen Frijters <jeroen@sumatra.nl> * 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): Likewise. (setCharField): Likewise. (setDoubleField): Likewise. (setFloatField): Likewise. (setIntField): Likewise. (setLongField): Likewise. (setShortField): Likewise. (setObjectField): Likewise. * 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): Likewise. (getCharField): Likewise. (getDoubleField): Likewise. (getFloatField): Likewise. (getIntField): Likewise. (getLongField): Likewise. (getShortField): Likewise. (getObjectField): Likewise. * java/io/ObjectStreamClass.java (hasReadMethod): Added method to facilitate caching the Method object in the future. From-SVN: r64351
Diffstat (limited to 'gcc/cppinit.c')
0 files changed, 0 insertions, 0 deletions