Path: blob/master/test/jdk/java/rmi/transport/checkLeaseInfoLeak/CheckLeaseLeak_Stub.java
41155 views
/*1* Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223// Stub class generated by rmic, do not edit.24// Contents subject to change without notice.2526public final class CheckLeaseLeak_Stub27extends java.rmi.server.RemoteStub28implements LeaseLeak, java.rmi.Remote29{30private static java.rmi.server.Operation[] operations = {31new java.rmi.server.Operation("void ping()")32};3334private static final long interfaceHash = -8409781791984809394L;3536private static final long serialVersionUID = 2;3738private static boolean useNewInvoke;39private static java.lang.reflect.Method $method_ping_0;4041static {42try {43java.rmi.server.RemoteRef.class.getMethod("invoke",44new java.lang.Class[] {45java.rmi.Remote.class,46java.lang.reflect.Method.class,47java.lang.Object[].class,48long.class49});50useNewInvoke = true;51$method_ping_0 = LeaseLeak.class.getMethod("ping", new java.lang.Class[] {});52} catch (java.lang.NoSuchMethodException e) {53useNewInvoke = false;54}55}5657// constructors58public CheckLeaseLeak_Stub() {59super();60}61public CheckLeaseLeak_Stub(java.rmi.server.RemoteRef ref) {62super(ref);63}6465// methods from remote interfaces6667// implementation of ping()68public void ping()69throws java.rmi.RemoteException70{71try {72if (useNewInvoke) {73ref.invoke(this, $method_ping_0, null, 5866401369815527589L);74} else {75java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);76ref.invoke(call);77ref.done(call);78}79} catch (java.lang.RuntimeException e) {80throw e;81} catch (java.rmi.RemoteException e) {82throw e;83} catch (java.lang.Exception e) {84throw new java.rmi.UnexpectedException("undeclared checked exception", e);85}86}87}888990