Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/jdk/java/rmi/transport/checkLeaseInfoLeak/CheckLeaseLeak_Stub.java
41155 views
1
/*
2
* Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation.
8
*
9
* This code is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
* version 2 for more details (a copy is included in the LICENSE file that
13
* accompanied this code).
14
*
15
* You should have received a copy of the GNU General Public License version
16
* 2 along with this work; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*/
23
24
// Stub class generated by rmic, do not edit.
25
// Contents subject to change without notice.
26
27
public final class CheckLeaseLeak_Stub
28
extends java.rmi.server.RemoteStub
29
implements LeaseLeak, java.rmi.Remote
30
{
31
private static java.rmi.server.Operation[] operations = {
32
new java.rmi.server.Operation("void ping()")
33
};
34
35
private static final long interfaceHash = -8409781791984809394L;
36
37
private static final long serialVersionUID = 2;
38
39
private static boolean useNewInvoke;
40
private static java.lang.reflect.Method $method_ping_0;
41
42
static {
43
try {
44
java.rmi.server.RemoteRef.class.getMethod("invoke",
45
new java.lang.Class[] {
46
java.rmi.Remote.class,
47
java.lang.reflect.Method.class,
48
java.lang.Object[].class,
49
long.class
50
});
51
useNewInvoke = true;
52
$method_ping_0 = LeaseLeak.class.getMethod("ping", new java.lang.Class[] {});
53
} catch (java.lang.NoSuchMethodException e) {
54
useNewInvoke = false;
55
}
56
}
57
58
// constructors
59
public CheckLeaseLeak_Stub() {
60
super();
61
}
62
public CheckLeaseLeak_Stub(java.rmi.server.RemoteRef ref) {
63
super(ref);
64
}
65
66
// methods from remote interfaces
67
68
// implementation of ping()
69
public void ping()
70
throws java.rmi.RemoteException
71
{
72
try {
73
if (useNewInvoke) {
74
ref.invoke(this, $method_ping_0, null, 5866401369815527589L);
75
} else {
76
java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
77
ref.invoke(call);
78
ref.done(call);
79
}
80
} catch (java.lang.RuntimeException e) {
81
throw e;
82
} catch (java.rmi.RemoteException e) {
83
throw e;
84
} catch (java.lang.Exception e) {
85
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
86
}
87
}
88
}
89
90