[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Serialization #2 (set field methods)
From: |
Guilhem Lavaux |
Subject: |
[PATCH] Serialization #2 (set field methods) |
Date: |
Wed, 26 Nov 2003 21:07:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 |
Hi,
This patch adds extra checking required by JDK's behaviour. If someone
tries to assign a field which has not the required type then an
InvalidClassException should be thrown.
Please review it.
Cheers,
Guilhem.
P.S.: Should I really write a documentation for each of the methods in
this patch ? I would think they are straightforward to understand... In
the other case I'll try to write something.
ChangeLog:
2003-26-11 Guilhem Lavaux <address@hidden>
* java/io/ObjectInputStream.java:
(setBooleanField) Throw an InvalidClassException if the field hasn't
the required
type.
(setByteField) Likewise.
(setCharField) Likewise.
(setDoubleField) Likewise.
(setFloatField) Likewise.
(setIntField) Likewise.
(setShortField) Likewise.
(setLongField) Likewise.
(setObjectField) Likewise.
- [PATCH] Serialization #2 (set field methods),
Guilhem Lavaux <=