Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/java/rmi/activation/ActivationSystem/stubClassesPermitted/StubClassesPermitted_Stub.java
38889 views
1
/*
2
* Copyright (c) 1999, 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 StubClassesPermitted_Stub
28
extends java.rmi.server.RemoteStub
29
implements CanCreateStubs, java.rmi.Remote
30
{
31
private static final java.rmi.server.Operation[] operations = {
32
new java.rmi.server.Operation("java.lang.Object getForbiddenClass()"),
33
new java.rmi.server.Operation("java.rmi.registry.Registry getRegistry()"),
34
new java.rmi.server.Operation("java.rmi.activation.ActivationGroupID returnGroupID()"),
35
new java.rmi.server.Operation("void shutdown()")
36
};
37
38
private static final long interfaceHash = 1677779850431817575L;
39
40
private static final long serialVersionUID = 2;
41
42
private static boolean useNewInvoke;
43
private static java.lang.reflect.Method $method_getForbiddenClass_0;
44
private static java.lang.reflect.Method $method_getRegistry_1;
45
private static java.lang.reflect.Method $method_returnGroupID_2;
46
private static java.lang.reflect.Method $method_shutdown_3;
47
48
static {
49
try {
50
java.rmi.server.RemoteRef.class.getMethod("invoke",
51
new java.lang.Class[] {
52
java.rmi.Remote.class,
53
java.lang.reflect.Method.class,
54
java.lang.Object[].class,
55
long.class
56
});
57
useNewInvoke = true;
58
$method_getForbiddenClass_0 = CanCreateStubs.class.getMethod("getForbiddenClass", new java.lang.Class[] {});
59
$method_getRegistry_1 = CanCreateStubs.class.getMethod("getRegistry", new java.lang.Class[] {});
60
$method_returnGroupID_2 = CanCreateStubs.class.getMethod("returnGroupID", new java.lang.Class[] {});
61
$method_shutdown_3 = CanCreateStubs.class.getMethod("shutdown", new java.lang.Class[] {});
62
} catch (java.lang.NoSuchMethodException e) {
63
useNewInvoke = false;
64
}
65
}
66
67
// constructors
68
public StubClassesPermitted_Stub() {
69
super();
70
}
71
public StubClassesPermitted_Stub(java.rmi.server.RemoteRef ref) {
72
super(ref);
73
}
74
75
// methods from remote interfaces
76
77
// implementation of getForbiddenClass()
78
public java.lang.Object getForbiddenClass()
79
throws java.lang.Exception
80
{
81
if (useNewInvoke) {
82
Object $result = ref.invoke(this, $method_getForbiddenClass_0, null, -658265783646674294L);
83
return ((java.lang.Object) $result);
84
} else {
85
java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
86
ref.invoke(call);
87
java.lang.Object $result;
88
try {
89
java.io.ObjectInput in = call.getInputStream();
90
$result = (java.lang.Object) in.readObject();
91
} catch (java.io.IOException e) {
92
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
93
} catch (java.lang.ClassNotFoundException e) {
94
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
95
} finally {
96
ref.done(call);
97
}
98
return $result;
99
}
100
}
101
102
// implementation of getRegistry()
103
public java.rmi.registry.Registry getRegistry()
104
throws java.rmi.RemoteException
105
{
106
try {
107
if (useNewInvoke) {
108
Object $result = ref.invoke(this, $method_getRegistry_1, null, 255311215504696981L);
109
return ((java.rmi.registry.Registry) $result);
110
} else {
111
java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash);
112
ref.invoke(call);
113
java.rmi.registry.Registry $result;
114
try {
115
java.io.ObjectInput in = call.getInputStream();
116
$result = (java.rmi.registry.Registry) in.readObject();
117
} catch (java.io.IOException e) {
118
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
119
} catch (java.lang.ClassNotFoundException e) {
120
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
121
} finally {
122
ref.done(call);
123
}
124
return $result;
125
}
126
} catch (java.lang.RuntimeException e) {
127
throw e;
128
} catch (java.rmi.RemoteException e) {
129
throw e;
130
} catch (java.lang.Exception e) {
131
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
132
}
133
}
134
135
// implementation of returnGroupID()
136
public java.rmi.activation.ActivationGroupID returnGroupID()
137
throws java.rmi.RemoteException
138
{
139
try {
140
if (useNewInvoke) {
141
Object $result = ref.invoke(this, $method_returnGroupID_2, null, 6267304638191237098L);
142
return ((java.rmi.activation.ActivationGroupID) $result);
143
} else {
144
java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 2, interfaceHash);
145
ref.invoke(call);
146
java.rmi.activation.ActivationGroupID $result;
147
try {
148
java.io.ObjectInput in = call.getInputStream();
149
$result = (java.rmi.activation.ActivationGroupID) in.readObject();
150
} catch (java.io.IOException e) {
151
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
152
} catch (java.lang.ClassNotFoundException e) {
153
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
154
} finally {
155
ref.done(call);
156
}
157
return $result;
158
}
159
} catch (java.lang.RuntimeException e) {
160
throw e;
161
} catch (java.rmi.RemoteException e) {
162
throw e;
163
} catch (java.lang.Exception e) {
164
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
165
}
166
}
167
168
// implementation of shutdown()
169
public void shutdown()
170
throws java.lang.Exception
171
{
172
if (useNewInvoke) {
173
ref.invoke(this, $method_shutdown_3, null, -7207851917985848402L);
174
} else {
175
java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 3, interfaceHash);
176
ref.invoke(call);
177
ref.done(call);
178
}
179
}
180
}
181
182