diff -r ee8a922f4268 -r d0f57d3ea898 emul/compact/src/main/java/java/util/Vector.java --- a/emul/compact/src/main/java/java/util/Vector.java Mon Jan 28 13:28:02 2013 +0100 +++ b/emul/compact/src/main/java/java/util/Vector.java Mon Jan 28 13:52:28 2013 +0100 @@ -25,6 +25,8 @@ package java.util; +import org.apidesign.bck2brwsr.emul.lang.System; + /** * The {@code Vector} class implements a growable array of * objects. Like an array, it contains components that can be @@ -1055,25 +1057,6 @@ } /** - * Save the state of the {@code Vector} instance to a stream (that - * is, serialize it). - * This method performs synchronization to ensure the consistency - * of the serialized data. - */ - private void writeObject(java.io.ObjectOutputStream s) - throws java.io.IOException { - final java.io.ObjectOutputStream.PutField fields = s.putFields(); - final Object[] data; - synchronized (this) { - fields.put("capacityIncrement", capacityIncrement); - fields.put("elementCount", elementCount); - data = elementData.clone(); - } - fields.put("elementData", data); - s.writeFields(); - } - - /** * Returns a list iterator over the elements in this list (in proper * sequence), starting at the specified position in the list. * The specified index indicates the first element that would be