2004-11-06 Mattias Rehnberg <Mattias.Rehnberg@home.se>

* java/io/Vector.java
        (writeObject): New function to serialized output thread safe.

        * java/io/ObjectOutputStream.java
        (writeObject): Move the assignment of the class handle to after
        the assignment of class descriptor handle.

From-SVN: r90175
This commit is contained in:
Mattias Rehnberg 2004-11-06 16:52:00 +01:00 committed by Mark Wielaard
parent a036c6f739
commit 03e9b84966
3 changed files with 27 additions and 1 deletions

View file

@ -220,7 +220,6 @@ public class ObjectOutputStream extends OutputStream
{
Class cl = (Class)obj;
ObjectStreamClass osc = ObjectStreamClass.lookupForClassObject(cl);
assignNewHandle(obj);
realOutput.writeByte(TC_CLASS);
if (!osc.isProxyClass)
{
@ -241,6 +240,7 @@ public class ObjectOutputStream extends OutputStream
writeObject(osc.getSuper());
}
assignNewHandle(obj);
break;
}