5459N/A/*
5459N/A * Copyright 2009-2010 Sun Microsystems, Inc. All Rights Reserved.
5459N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5459N/A *
5459N/A * This code is free software; you can redistribute it and/or modify it
5459N/A * under the terms of the GNU General Public License version 2 only, as
5459N/A * published by the Free Software Foundation. Sun designates this
5459N/A * particular file as subject to the "Classpath" exception as provided
5459N/A * by Sun in the LICENSE file that accompanied this code.
5459N/A *
5459N/A * This code is distributed in the hope that it will be useful, but WITHOUT
5459N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5459N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5459N/A * version 2 for more details (a copy is included in the LICENSE file that
5459N/A * accompanied this code).
5459N/A *
5459N/A * You should have received a copy of the GNU General Public License version
5459N/A * 2 along with this work; if not, write to the Free Software Foundation,
5459N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5459N/A *
5459N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
5459N/A * CA 95054 USA or visit www.sun.com if you need additional information or
5459N/A * have any questions.
5459N/A */
5459N/Apackage test.java.lang.invoke.remote;
5459N/A
5459N/Aimport java.lang.invoke.MethodHandles;
5459N/Aimport java.lang.invoke.MethodHandles.Lookup;
5459N/Aimport test.java.lang.invoke.MethodHandlesTest;
5459N/A
5459N/A/**
5459N/A * Out-of-package access into protected members of test.java.lang.invoke.remote.MethodHandle.PubExample.
5459N/A */
5459N/Apublic class RemoteExample extends MethodHandlesTest.PubExample {
5459N/A public RemoteExample() { super("RemoteExample"); }
5459N/A public static Lookup lookup() { return MethodHandles.lookup(); }
5459N/A public final void fin_v0() { MethodHandlesTest.called("Rem/fin_v0", this); }
5459N/A protected void pro_v0() { MethodHandlesTest.called("Rem/pro_v0", this); }
5459N/A protected static void pro_s0() { MethodHandlesTest.called("Rem/pro_s0"); }
5459N/A}