SurvivePrematureClose.java revision 0
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * Copyright 2001-2002 Sun Microsystems, Inc. All Rights Reserved.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * This code is free software; you can redistribute it and/or modify it
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * under the terms of the GNU General Public License version 2 only, as
class A implements Externalizable {
class B implements Serializable {
public class SurvivePrematureClose {
writeRead(new A());
writeRead(new B());