--- old/src/java.desktop/share/classes/java/awt/Container.java 2014-10-16 16:34:42.947376600 +0400 +++ new/src/java.desktop/share/classes/java/awt/Container.java 2014-10-16 16:34:41.941248800 +0400 @@ -3696,7 +3696,7 @@ private void writeObject(ObjectOutputStream s) throws IOException { ObjectOutputStream.PutField f = s.putFields(); f.put("ncomponents", component.size()); - f.put("component", getComponentsSync()); + f.put("component", component.toArray(EMPTY_ARRAY)); f.put("layoutMgr", layoutMgr); f.put("dispatcher", dispatcher); f.put("maxSize", maxSize);