01: /*
02: * RMI stub class
03: * for class org.apache.harmony.rmi.test.TestObject
04: * Compatible with stub protocol version 1.2
05: *
06: * Generated by DRL RMI Compiler (rmic).
07: *
08: * DO NOT EDIT!!!
09: * Contents subject to change without notice!
10: */
11: package org.apache.harmony.rmi.test;
12:
13: public final class TestObject_Stub extends java.rmi.server.RemoteStub
14: implements org.apache.harmony.rmi.test.MyRemoteInterface1,
15: org.apache.harmony.rmi.test.TestInterface {
16:
17: private static final long serialVersionUID = 2;
18:
19: private static java.lang.reflect.Method $method_runRemote_0;
20: private static java.lang.reflect.Method $method_test1_1;
21:
22: static {
23: try {
24: $method_runRemote_0 = org.apache.harmony.rmi.test.TestInterface.class
25: .getMethod(
26: "runRemote",
27: new java.lang.Class[] { java.rmi.Remote.class });
28: $method_test1_1 = org.apache.harmony.rmi.test.MyRemoteInterface1.class
29: .getMethod("test1", new java.lang.Class[] {});
30: } catch (java.lang.NoSuchMethodException e) {
31: throw new java.lang.NoSuchMethodError(
32: "Stub class initialization failed: org.apache.harmony.rmi.test.TestObject_Stub");
33: }
34: }
35:
36: public TestObject_Stub(java.rmi.server.RemoteRef ref) {
37: super (ref);
38: }
39:
40: // Implementation of runRemote(Remote)
41: public void runRemote(java.rmi.Remote $param_Remote_1)
42: throws java.rmi.RemoteException {
43: try {
44: ref.invoke(this , $method_runRemote_0,
45: new java.lang.Object[] { $param_Remote_1 },
46: -3789895345284725521L);
47: } catch (java.lang.RuntimeException e) {
48: throw e;
49: } catch (java.rmi.RemoteException e) {
50: throw e;
51: } catch (java.lang.Exception e) {
52: throw new java.rmi.UnexpectedException(
53: "Undeclared checked exception", e);
54: }
55: }
56:
57: // Implementation of test1()
58: public java.lang.String test1() throws java.rmi.RemoteException {
59: try {
60: java.lang.Object $result = ref.invoke(this ,
61: $method_test1_1, null, -52386119061268754L);
62: return ((java.lang.String) $result);
63: } catch (java.lang.RuntimeException e) {
64: throw e;
65: } catch (java.rmi.RemoteException e) {
66: throw e;
67: } catch (java.lang.Exception e) {
68: throw new java.rmi.UnexpectedException(
69: "Undeclared checked exception", e);
70: }
71: }
72: }
|