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 <[EMAIL PROTECTED]>
* 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.
_______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath