2003-12-23 Guilhem Lavaux <guilhem@kaffe.org>
* java/io/ObjectInputStream.java (getField): Handle transient and non persistent fields. (readClassDescriptor): Better error handling, use the right class loader. (readFields): Fields marked as not present in the stream or not to be set are not read and set. * java/io/ObjectInputStream.java (readFields): Changed implementation of GetField. (readClassDescriptor): Documented. * java/io/ObjectOutputStream.java (writeClassDescriptor): Added condition when to write class super class information. From-SVN: r74985
This commit is contained in:
parent
f2073745a8
commit
692fb023ef
4 changed files with 358 additions and 44 deletions
|
@ -407,7 +407,8 @@ public class ObjectOutputStream extends OutputStream
|
|||
setBlockDataMode (oldmode);
|
||||
realOutput.writeByte (TC_ENDBLOCKDATA);
|
||||
|
||||
if (osc.isSerializable ())
|
||||
if (osc.isSerializable()
|
||||
|| osc.isExternalizable())
|
||||
writeObject (osc.getSuper ());
|
||||
else
|
||||
writeObject (null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue