1 /*
 2  * Copyright (c) 2002, 2020, 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.  Oracle designates this
 8  * particular file as subject to the "Classpath" exception as provided
 9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 // Stub class generated by rmic, do not edit.
26 // Contents subject to change without notice.
27 
28 package javax.management.remote.rmi;
29 
30 /**
31  * RMIServerImpl remote stub.
32  */
33 @SuppressWarnings({"deprecation", "rawtypes", "unchecked"})
34 public final class RMIServerImpl_Stub
35         extends java.rmi.server.RemoteStub
36         implements javax.management.remote.rmi.RMIServer {
37     @java.io.Serial
38     private static final long serialVersionUID = 2;
39 
40     private static java.lang.reflect.Method $method_getVersion_0;
41     private static java.lang.reflect.Method $method_newClient_1;
42 
43     static {
44         try {
45             $method_getVersion_0 = javax.management.remote.rmi.RMIServer.class.getMethod("getVersion", new java.lang.Class[]{});
46             $method_newClient_1 = javax.management.remote.rmi.RMIServer.class.getMethod("newClient", new java.lang.Class[]{java.lang.Object.class});
47         } catch (java.lang.NoSuchMethodException e) {
48             throw new java.lang.NoSuchMethodError(
49                     "stub class initialization failed");
50         }
51     }
52 
53     /**
54      * Constructor.
55      *
56      * @param ref  a remote ref
57      */
58     public RMIServerImpl_Stub(java.rmi.server.RemoteRef ref) {
59         super(ref);
60     }
61 
62     // methods from remote interfaces
63 
64     // Implementation of getVersion()
65     public java.lang.String getVersion()
66             throws java.rmi.RemoteException {
67         try {
68             Object $result = ref.invoke(this, $method_getVersion_0, null, -8081107751519807347L);
69             return ((java.lang.String) $result);
70         } catch (java.lang.RuntimeException e) {
71             throw e;
72         } catch (java.rmi.RemoteException e) {
73             throw e;
74         } catch (java.lang.Exception e) {
75             throw new java.rmi.UnexpectedException("undeclared checked exception", e);
76         }
77     }
78 
79     // Implementation of newClient(Object)
80     public javax.management.remote.rmi.RMIConnection newClient(java.lang.Object $param_Object_1)
81             throws java.io.IOException {
82         try {
83             Object $result = ref.invoke(this, $method_newClient_1, new java.lang.Object[]{$param_Object_1}, -1089742558549201240L);
84             return ((javax.management.remote.rmi.RMIConnection) $result);
85         } catch (java.lang.RuntimeException e) {
86             throw e;
87         } catch (java.io.IOException e) {
88             throw e;
89         } catch (java.lang.Exception e) {
90             throw new java.rmi.UnexpectedException("undeclared checked exception", e);
91         }
92     }
93 }