2003-12-31 Guilhem Lavaux <guilhem@kaffe.org>
authorGuilhem Lavaux <guilhem@kaffe.org>
Wed, 31 Dec 2003 11:04:21 +0000 (11:04 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 31 Dec 2003 11:04:21 +0000 (11:04 +0000)
commiteb813adf1d3443148dabf8af4b359d8756ba500b
tree090301558a106672953dc317d4505fd4824724e0
parentd415865929d00608b5eeedd824ee679e673f18f3
2003-12-31  Guilhem Lavaux  <guilhem@kaffe.org>

* java/io/ObjectOutputStream.java
(putFields): Reindented. Fixed behaviour: currentPutField should be
null
before calling this method.
(writeFields): Likewise.
(markFieldsWritten): Fixed the exception message.
(callWriteMethod): Ensure currentPutField is null.
(getBooleanField): Translate IllegalArgumentException into
InvalidClassException.
(getByteField): Likewise.
(getCharField): Likewise.
(getDoubleField): Likewise.
(getFloatField): Likewise.
(getIntField): Likewise.
(getLongField): Likewise.
(getShortField): Likewise.
(getObjectField): Check the type code before returning the object.
(getField): Translate NoSuchFieldException into InvalidClassException
directly.

From-SVN: r75265
libjava/ChangeLog
libjava/java/io/ObjectOutputStream.java