1 /*
 2  * Copyright (c) 1999, 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 com.sun.jndi.rmi.registry;
29 
30 /**
31  * ReferenceWrapper_Stub.
32  */
33 @SuppressWarnings({"deprecation", "rawtypes", "unchecked"})
34 public final class ReferenceWrapper_Stub
35         extends java.rmi.server.RemoteStub
36         implements com.sun.jndi.rmi.registry.RemoteReference, java.rmi.Remote {
37     private static final long serialVersionUID = 2;
38 
39     private static java.lang.reflect.Method $method_getReference_0;
40 
41     static {
42         try {
43             $method_getReference_0 = com.sun.jndi.rmi.registry.RemoteReference.class.getMethod("getReference", new java.lang.Class[]{});
44         } catch (java.lang.NoSuchMethodException e) {
45             throw new java.lang.NoSuchMethodError(
46                     "stub class initialization failed");
47         }
48     }
49 
50     // constructors
51     public ReferenceWrapper_Stub(java.rmi.server.RemoteRef ref) {
52         super(ref);
53     }
54 
55     // methods from remote interfaces
56 
57     // implementation of getReference()
58     public javax.naming.Reference getReference()
59             throws java.rmi.RemoteException, javax.naming.NamingException {
60         try {
61             Object $result = ref.invoke(this, $method_getReference_0, null, 3529874867989176284L);
62             return ((javax.naming.Reference) $result);
63         } catch (java.lang.RuntimeException e) {
64             throw e;
65         } catch (java.rmi.RemoteException e) {
66             throw e;
67         } catch (javax.naming.NamingException e) {
68             throw e;
69         } catch (java.lang.Exception e) {
70             throw new java.rmi.UnexpectedException("undeclared checked exception", e);
71         }
72     }
73 }