ResolveProxyClass.java revision 2362
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * This code is free software; you can redistribute it and/or modify it
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * under the terms of the GNU General Public License version 2 only, as
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * published by the Free Software Foundation.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * This code is distributed in the hope that it will be useful, but WITHOUT
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * version 2 for more details (a copy is included in the LICENSE file that
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * accompanied this code).
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * You should have received a copy of the GNU General Public License version
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * 2 along with this work; if not, write to the Free Software Foundation,
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * or visit www.oracle.com if you need additional information or have any
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * questions.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * @bug 4258644
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * @summary ObjectInputStream's default implementation of its protected
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * resolveProxyClass method is specified to pass the first non-null class
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * loader up the execution stack to the Proxy.getProxyClass method when
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * it creates the specified proxy class; this test makes sure that it does
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * that in situations where it hadn't in the past, such as if the defining
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * loaders of the interfaces were all strict ancestors of the first
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * non-null loader up the stack.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * @author Peter Jones
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe * @build ResolveProxyClass
public class ResolveProxyClass {
throw new RuntimeException(
} catch (Throwable e) {
e.printStackTrace();