001: /*
002: * RMI stub class
003: * for class org.apache.harmony.rmi.test.MyRemoteObject
004: * Compatible with stub protocol version 1.2
005: *
006: * Generated by DRL RMI Compiler (rmic).
007: *
008: * DO NOT EDIT!!!
009: * Contents subject to change without notice!
010: */
011: package org.apache.harmony.rmi.test;
012:
013: public final class MyRemoteObject_Stub extends
014: java.rmi.server.RemoteStub implements
015: org.apache.harmony.rmi.test.MyRemoteInterface, java.rmi.Remote {
016:
017: private static final long serialVersionUID = 2;
018:
019: private static java.lang.reflect.Method $method_test_Array_Void_0;
020: private static java.lang.reflect.Method $method_test_BooleanStringRemote_Void_1;
021: private static java.lang.reflect.Method $method_test_Error_2;
022: private static java.lang.reflect.Method $method_test_Exception_3;
023: private static java.lang.reflect.Method $method_test_IntArray_Void_4;
024: private static java.lang.reflect.Method $method_test_Int_Void_5;
025: private static java.lang.reflect.Method $method_test_Long_Long_6;
026: private static java.lang.reflect.Method $method_test_Proxy_Void_7;
027: private static java.lang.reflect.Method $method_test_RemoteArray_Void_8;
028: private static java.lang.reflect.Method $method_test_RemoteException_9;
029: private static java.lang.reflect.Method $method_test_RemoteRemote_Remote_10;
030: private static java.lang.reflect.Method $method_test_RemoteString_Void_11;
031: private static java.lang.reflect.Method $method_test_Remote_Remote_12;
032: private static java.lang.reflect.Method $method_test_Remote_Void_13;
033: private static java.lang.reflect.Method $method_test_RuntimeException_14;
034: private static java.lang.reflect.Method $method_test_String_String_15;
035: private static java.lang.reflect.Method $method_test_String_Void_16;
036: private static java.lang.reflect.Method $method_test_UnicastRemoteObject_Void_17;
037: private static java.lang.reflect.Method $method_test_Void_Array_18;
038: private static java.lang.reflect.Method $method_test_Void_Int_19;
039: private static java.lang.reflect.Method $method_test_Void_IntArray_20;
040: private static java.lang.reflect.Method $method_test_Void_Remote_21;
041: private static java.lang.reflect.Method $method_test_Void_RemoteArray_22;
042: private static java.lang.reflect.Method $method_test_Void_String_23;
043:
044: static {
045: try {
046: $method_test_Array_Void_0 = org.apache.harmony.rmi.test.MyRemoteInterface.class
047: .getMethod(
048: "test_Array_Void",
049: new java.lang.Class[] { java.lang.String[].class });
050: $method_test_BooleanStringRemote_Void_1 = org.apache.harmony.rmi.test.MyRemoteInterface.class
051: .getMethod("test_BooleanStringRemote_Void",
052: new java.lang.Class[] { boolean.class,
053: java.lang.String.class,
054: java.rmi.Remote.class });
055: $method_test_Error_2 = org.apache.harmony.rmi.test.MyRemoteInterface.class
056: .getMethod("test_Error", new java.lang.Class[] {});
057: $method_test_Exception_3 = org.apache.harmony.rmi.test.MyRemoteInterface.class
058: .getMethod("test_Exception",
059: new java.lang.Class[] {});
060: $method_test_IntArray_Void_4 = org.apache.harmony.rmi.test.MyRemoteInterface.class
061: .getMethod("test_IntArray_Void",
062: new java.lang.Class[] { int[].class });
063: $method_test_Int_Void_5 = org.apache.harmony.rmi.test.MyRemoteInterface.class
064: .getMethod("test_Int_Void",
065: new java.lang.Class[] { int.class });
066: $method_test_Long_Long_6 = org.apache.harmony.rmi.test.MyRemoteInterface.class
067: .getMethod("test_Long_Long",
068: new java.lang.Class[] { long.class });
069: $method_test_Proxy_Void_7 = org.apache.harmony.rmi.test.MyRemoteInterface.class
070: .getMethod(
071: "test_Proxy_Void",
072: new java.lang.Class[] { java.lang.Object.class });
073: $method_test_RemoteArray_Void_8 = org.apache.harmony.rmi.test.MyRemoteInterface.class
074: .getMethod(
075: "test_RemoteArray_Void",
076: new java.lang.Class[] { java.rmi.Remote[].class });
077: $method_test_RemoteException_9 = org.apache.harmony.rmi.test.MyRemoteInterface.class
078: .getMethod("test_RemoteException",
079: new java.lang.Class[] {});
080: $method_test_RemoteRemote_Remote_10 = org.apache.harmony.rmi.test.MyRemoteInterface.class
081: .getMethod("test_RemoteRemote_Remote",
082: new java.lang.Class[] {
083: java.rmi.Remote.class,
084: java.rmi.Remote.class });
085: $method_test_RemoteString_Void_11 = org.apache.harmony.rmi.test.MyRemoteInterface.class
086: .getMethod("test_RemoteString_Void",
087: new java.lang.Class[] {
088: java.rmi.Remote.class,
089: java.lang.String.class });
090: $method_test_Remote_Remote_12 = org.apache.harmony.rmi.test.MyRemoteInterface.class
091: .getMethod(
092: "test_Remote_Remote",
093: new java.lang.Class[] { java.rmi.Remote.class });
094: $method_test_Remote_Void_13 = org.apache.harmony.rmi.test.MyRemoteInterface.class
095: .getMethod(
096: "test_Remote_Void",
097: new java.lang.Class[] { java.rmi.Remote.class });
098: $method_test_RuntimeException_14 = org.apache.harmony.rmi.test.MyRemoteInterface.class
099: .getMethod("test_RuntimeException",
100: new java.lang.Class[] {});
101: $method_test_String_String_15 = org.apache.harmony.rmi.test.MyRemoteInterface.class
102: .getMethod(
103: "test_String_String",
104: new java.lang.Class[] { java.lang.String.class });
105: $method_test_String_Void_16 = org.apache.harmony.rmi.test.MyRemoteInterface.class
106: .getMethod(
107: "test_String_Void",
108: new java.lang.Class[] { java.lang.String.class });
109: $method_test_UnicastRemoteObject_Void_17 = org.apache.harmony.rmi.test.MyRemoteInterface.class
110: .getMethod(
111: "test_UnicastRemoteObject_Void",
112: new java.lang.Class[] { java.rmi.Remote.class });
113: $method_test_Void_Array_18 = org.apache.harmony.rmi.test.MyRemoteInterface.class
114: .getMethod("test_Void_Array",
115: new java.lang.Class[] {});
116: $method_test_Void_Int_19 = org.apache.harmony.rmi.test.MyRemoteInterface.class
117: .getMethod("test_Void_Int",
118: new java.lang.Class[] {});
119: $method_test_Void_IntArray_20 = org.apache.harmony.rmi.test.MyRemoteInterface.class
120: .getMethod("test_Void_IntArray",
121: new java.lang.Class[] {});
122: $method_test_Void_Remote_21 = org.apache.harmony.rmi.test.MyRemoteInterface.class
123: .getMethod("test_Void_Remote",
124: new java.lang.Class[] {});
125: $method_test_Void_RemoteArray_22 = org.apache.harmony.rmi.test.MyRemoteInterface.class
126: .getMethod("test_Void_RemoteArray",
127: new java.lang.Class[] {});
128: $method_test_Void_String_23 = org.apache.harmony.rmi.test.MyRemoteInterface.class
129: .getMethod("test_Void_String",
130: new java.lang.Class[] {});
131: } catch (java.lang.NoSuchMethodException e) {
132: throw new java.lang.NoSuchMethodError(
133: "Stub class initialization failed: org.apache.harmony.rmi.test.MyRemoteObject_Stub");
134: }
135: }
136:
137: public MyRemoteObject_Stub(java.rmi.server.RemoteRef ref) {
138: super (ref);
139: }
140:
141: // Implementation of test_Array_Void(String[])
142: public void test_Array_Void(
143: java.lang.String[] $param_arrayOf_String_1)
144: throws java.rmi.RemoteException {
145: try {
146: ref.invoke(this , $method_test_Array_Void_0,
147: new java.lang.Object[] { $param_arrayOf_String_1 },
148: -2243646371196886499L);
149: } catch (java.lang.RuntimeException e) {
150: throw e;
151: } catch (java.rmi.RemoteException e) {
152: throw e;
153: } catch (java.lang.Exception e) {
154: throw new java.rmi.UnexpectedException(
155: "Undeclared checked exception", e);
156: }
157: }
158:
159: // Implementation of test_BooleanStringRemote_Void(boolean, String, Remote)
160: public void test_BooleanStringRemote_Void(boolean $param_boolean_1,
161: java.lang.String $param_String_2,
162: java.rmi.Remote $param_Remote_3)
163: throws java.rmi.RemoteException {
164: try {
165: ref.invoke(this , $method_test_BooleanStringRemote_Void_1,
166: new java.lang.Object[] {
167: new java.lang.Boolean($param_boolean_1),
168: $param_String_2, $param_Remote_3 },
169: 7275758542885426298L);
170: } catch (java.lang.RuntimeException e) {
171: throw e;
172: } catch (java.rmi.RemoteException e) {
173: throw e;
174: } catch (java.lang.Exception e) {
175: throw new java.rmi.UnexpectedException(
176: "Undeclared checked exception", e);
177: }
178: }
179:
180: // Implementation of test_Error()
181: public void test_Error() throws java.rmi.RemoteException,
182: org.apache.harmony.rmi.test.MyException {
183: try {
184: ref.invoke(this , $method_test_Error_2, null,
185: 4293752454580169568L);
186: } catch (java.lang.RuntimeException e) {
187: throw e;
188: } catch (java.rmi.RemoteException e) {
189: throw e;
190: } catch (org.apache.harmony.rmi.test.MyException e) {
191: throw e;
192: } catch (java.lang.Exception e) {
193: throw new java.rmi.UnexpectedException(
194: "Undeclared checked exception", e);
195: }
196: }
197:
198: // Implementation of test_Exception()
199: public void test_Exception() throws java.rmi.RemoteException,
200: org.apache.harmony.rmi.test.MyException {
201: try {
202: ref.invoke(this , $method_test_Exception_3, null,
203: -3748746352694661558L);
204: } catch (java.lang.RuntimeException e) {
205: throw e;
206: } catch (java.rmi.RemoteException e) {
207: throw e;
208: } catch (org.apache.harmony.rmi.test.MyException e) {
209: throw e;
210: } catch (java.lang.Exception e) {
211: throw new java.rmi.UnexpectedException(
212: "Undeclared checked exception", e);
213: }
214: }
215:
216: // Implementation of test_IntArray_Void(int[])
217: public void test_IntArray_Void(int[] $param_arrayOf_int_1)
218: throws java.rmi.RemoteException {
219: try {
220: ref.invoke(this , $method_test_IntArray_Void_4,
221: new java.lang.Object[] { $param_arrayOf_int_1 },
222: 7755952240160380354L);
223: } catch (java.lang.RuntimeException e) {
224: throw e;
225: } catch (java.rmi.RemoteException e) {
226: throw e;
227: } catch (java.lang.Exception e) {
228: throw new java.rmi.UnexpectedException(
229: "Undeclared checked exception", e);
230: }
231: }
232:
233: // Implementation of test_Int_Void(int)
234: public void test_Int_Void(int $param_int_1)
235: throws java.rmi.RemoteException {
236: try {
237: ref.invoke(this , $method_test_Int_Void_5,
238: new java.lang.Object[] { new java.lang.Integer(
239: $param_int_1) }, 5910792822519007408L);
240: } catch (java.lang.RuntimeException e) {
241: throw e;
242: } catch (java.rmi.RemoteException e) {
243: throw e;
244: } catch (java.lang.Exception e) {
245: throw new java.rmi.UnexpectedException(
246: "Undeclared checked exception", e);
247: }
248: }
249:
250: // Implementation of test_Long_Long(long)
251: public long test_Long_Long(long $param_long_1)
252: throws java.rmi.RemoteException {
253: try {
254: java.lang.Object $result = ref.invoke(this ,
255: $method_test_Long_Long_6,
256: new java.lang.Object[] { new java.lang.Long(
257: $param_long_1) }, -3247234805189459325L);
258: return ((java.lang.Long) $result).longValue();
259: } catch (java.lang.RuntimeException e) {
260: throw e;
261: } catch (java.rmi.RemoteException e) {
262: throw e;
263: } catch (java.lang.Exception e) {
264: throw new java.rmi.UnexpectedException(
265: "Undeclared checked exception", e);
266: }
267: }
268:
269: // Implementation of test_Proxy_Void(Object)
270: public void test_Proxy_Void(java.lang.Object $param_Object_1)
271: throws java.rmi.RemoteException {
272: try {
273: ref.invoke(this , $method_test_Proxy_Void_7,
274: new java.lang.Object[] { $param_Object_1 },
275: 1862985695118685397L);
276: } catch (java.lang.RuntimeException e) {
277: throw e;
278: } catch (java.rmi.RemoteException e) {
279: throw e;
280: } catch (java.lang.Exception e) {
281: throw new java.rmi.UnexpectedException(
282: "Undeclared checked exception", e);
283: }
284: }
285:
286: // Implementation of test_RemoteArray_Void(Remote[])
287: public void test_RemoteArray_Void(
288: java.rmi.Remote[] $param_arrayOf_Remote_1)
289: throws java.rmi.RemoteException {
290: try {
291: ref.invoke(this , $method_test_RemoteArray_Void_8,
292: new java.lang.Object[] { $param_arrayOf_Remote_1 },
293: -1903079572015069111L);
294: } catch (java.lang.RuntimeException e) {
295: throw e;
296: } catch (java.rmi.RemoteException e) {
297: throw e;
298: } catch (java.lang.Exception e) {
299: throw new java.rmi.UnexpectedException(
300: "Undeclared checked exception", e);
301: }
302: }
303:
304: // Implementation of test_RemoteException()
305: public void test_RemoteException() throws java.rmi.RemoteException {
306: try {
307: ref.invoke(this , $method_test_RemoteException_9, null,
308: -4280707563916630440L);
309: } catch (java.lang.RuntimeException e) {
310: throw e;
311: } catch (java.rmi.RemoteException e) {
312: throw e;
313: } catch (java.lang.Exception e) {
314: throw new java.rmi.UnexpectedException(
315: "Undeclared checked exception", e);
316: }
317: }
318:
319: // Implementation of test_RemoteRemote_Remote(Remote, Remote)
320: public java.rmi.Remote test_RemoteRemote_Remote(
321: java.rmi.Remote $param_Remote_1,
322: java.rmi.Remote $param_Remote_2)
323: throws java.rmi.RemoteException {
324: try {
325: java.lang.Object $result = ref.invoke(this ,
326: $method_test_RemoteRemote_Remote_10,
327: new java.lang.Object[] { $param_Remote_1,
328: $param_Remote_2 }, 5877054312994691713L);
329: return ((java.rmi.Remote) $result);
330: } catch (java.lang.RuntimeException e) {
331: throw e;
332: } catch (java.rmi.RemoteException e) {
333: throw e;
334: } catch (java.lang.Exception e) {
335: throw new java.rmi.UnexpectedException(
336: "Undeclared checked exception", e);
337: }
338: }
339:
340: // Implementation of test_RemoteString_Void(Remote, String)
341: public void test_RemoteString_Void(java.rmi.Remote $param_Remote_1,
342: java.lang.String $param_String_2)
343: throws java.rmi.RemoteException {
344: try {
345: ref.invoke(this , $method_test_RemoteString_Void_11,
346: new java.lang.Object[] { $param_Remote_1,
347: $param_String_2 }, 8074777281465601732L);
348: } catch (java.lang.RuntimeException e) {
349: throw e;
350: } catch (java.rmi.RemoteException e) {
351: throw e;
352: } catch (java.lang.Exception e) {
353: throw new java.rmi.UnexpectedException(
354: "Undeclared checked exception", e);
355: }
356: }
357:
358: // Implementation of test_Remote_Remote(Remote)
359: public java.rmi.Remote test_Remote_Remote(
360: java.rmi.Remote $param_Remote_1)
361: throws java.rmi.RemoteException {
362: try {
363: java.lang.Object $result = ref.invoke(this ,
364: $method_test_Remote_Remote_12,
365: new java.lang.Object[] { $param_Remote_1 },
366: -4114253240958026174L);
367: return ((java.rmi.Remote) $result);
368: } catch (java.lang.RuntimeException e) {
369: throw e;
370: } catch (java.rmi.RemoteException e) {
371: throw e;
372: } catch (java.lang.Exception e) {
373: throw new java.rmi.UnexpectedException(
374: "Undeclared checked exception", e);
375: }
376: }
377:
378: // Implementation of test_Remote_Void(Remote)
379: public void test_Remote_Void(java.rmi.Remote $param_Remote_1)
380: throws java.rmi.RemoteException {
381: try {
382: ref.invoke(this , $method_test_Remote_Void_13,
383: new java.lang.Object[] { $param_Remote_1 },
384: 1361325135665590515L);
385: } catch (java.lang.RuntimeException e) {
386: throw e;
387: } catch (java.rmi.RemoteException e) {
388: throw e;
389: } catch (java.lang.Exception e) {
390: throw new java.rmi.UnexpectedException(
391: "Undeclared checked exception", e);
392: }
393: }
394:
395: // Implementation of test_RuntimeException()
396: public void test_RuntimeException()
397: throws java.rmi.RemoteException,
398: org.apache.harmony.rmi.test.MyException {
399: try {
400: ref.invoke(this , $method_test_RuntimeException_14, null,
401: -127135464990399242L);
402: } catch (java.lang.RuntimeException e) {
403: throw e;
404: } catch (java.rmi.RemoteException e) {
405: throw e;
406: } catch (org.apache.harmony.rmi.test.MyException e) {
407: throw e;
408: } catch (java.lang.Exception e) {
409: throw new java.rmi.UnexpectedException(
410: "Undeclared checked exception", e);
411: }
412: }
413:
414: // Implementation of test_String_String(String)
415: public java.lang.String test_String_String(
416: java.lang.String $param_String_1)
417: throws java.rmi.RemoteException {
418: try {
419: java.lang.Object $result = ref.invoke(this ,
420: $method_test_String_String_15,
421: new java.lang.Object[] { $param_String_1 },
422: -3452752672819966636L);
423: return ((java.lang.String) $result);
424: } catch (java.lang.RuntimeException e) {
425: throw e;
426: } catch (java.rmi.RemoteException e) {
427: throw e;
428: } catch (java.lang.Exception e) {
429: throw new java.rmi.UnexpectedException(
430: "Undeclared checked exception", e);
431: }
432: }
433:
434: // Implementation of test_String_Void(String)
435: public void test_String_Void(java.lang.String $param_String_1)
436: throws java.rmi.RemoteException {
437: try {
438: ref.invoke(this , $method_test_String_Void_16,
439: new java.lang.Object[] { $param_String_1 },
440: 3320885435564229415L);
441: } catch (java.lang.RuntimeException e) {
442: throw e;
443: } catch (java.rmi.RemoteException e) {
444: throw e;
445: } catch (java.lang.Exception e) {
446: throw new java.rmi.UnexpectedException(
447: "Undeclared checked exception", e);
448: }
449: }
450:
451: // Implementation of test_UnicastRemoteObject_Void(Remote)
452: public void test_UnicastRemoteObject_Void(
453: java.rmi.Remote $param_Remote_1)
454: throws java.rmi.RemoteException {
455: try {
456: ref.invoke(this , $method_test_UnicastRemoteObject_Void_17,
457: new java.lang.Object[] { $param_Remote_1 },
458: 144033458432082551L);
459: } catch (java.lang.RuntimeException e) {
460: throw e;
461: } catch (java.rmi.RemoteException e) {
462: throw e;
463: } catch (java.lang.Exception e) {
464: throw new java.rmi.UnexpectedException(
465: "Undeclared checked exception", e);
466: }
467: }
468:
469: // Implementation of test_Void_Array()
470: public java.lang.String[] test_Void_Array()
471: throws java.rmi.RemoteException {
472: try {
473: java.lang.Object $result = ref.invoke(this ,
474: $method_test_Void_Array_18, null,
475: -5057311836623655794L);
476: return ((java.lang.String[]) $result);
477: } catch (java.lang.RuntimeException e) {
478: throw e;
479: } catch (java.rmi.RemoteException e) {
480: throw e;
481: } catch (java.lang.Exception e) {
482: throw new java.rmi.UnexpectedException(
483: "Undeclared checked exception", e);
484: }
485: }
486:
487: // Implementation of test_Void_Int()
488: public int test_Void_Int() throws java.rmi.RemoteException {
489: try {
490: java.lang.Object $result = ref.invoke(this ,
491: $method_test_Void_Int_19, null,
492: 1875101440413673248L);
493: return ((java.lang.Integer) $result).intValue();
494: } catch (java.lang.RuntimeException e) {
495: throw e;
496: } catch (java.rmi.RemoteException e) {
497: throw e;
498: } catch (java.lang.Exception e) {
499: throw new java.rmi.UnexpectedException(
500: "Undeclared checked exception", e);
501: }
502: }
503:
504: // Implementation of test_Void_IntArray()
505: public int[] test_Void_IntArray() throws java.rmi.RemoteException {
506: try {
507: java.lang.Object $result = ref.invoke(this ,
508: $method_test_Void_IntArray_20, null,
509: 6041902044718675347L);
510: return ((int[]) $result);
511: } catch (java.lang.RuntimeException e) {
512: throw e;
513: } catch (java.rmi.RemoteException e) {
514: throw e;
515: } catch (java.lang.Exception e) {
516: throw new java.rmi.UnexpectedException(
517: "Undeclared checked exception", e);
518: }
519: }
520:
521: // Implementation of test_Void_Remote()
522: public java.rmi.Remote test_Void_Remote()
523: throws java.rmi.RemoteException {
524: try {
525: java.lang.Object $result = ref.invoke(this ,
526: $method_test_Void_Remote_21, null,
527: -1711397921290492632L);
528: return ((java.rmi.Remote) $result);
529: } catch (java.lang.RuntimeException e) {
530: throw e;
531: } catch (java.rmi.RemoteException e) {
532: throw e;
533: } catch (java.lang.Exception e) {
534: throw new java.rmi.UnexpectedException(
535: "Undeclared checked exception", e);
536: }
537: }
538:
539: // Implementation of test_Void_RemoteArray()
540: public java.rmi.Remote[] test_Void_RemoteArray()
541: throws java.rmi.RemoteException {
542: try {
543: java.lang.Object $result = ref.invoke(this ,
544: $method_test_Void_RemoteArray_22, null,
545: 4456231954737882310L);
546: return ((java.rmi.Remote[]) $result);
547: } catch (java.lang.RuntimeException e) {
548: throw e;
549: } catch (java.rmi.RemoteException e) {
550: throw e;
551: } catch (java.lang.Exception e) {
552: throw new java.rmi.UnexpectedException(
553: "Undeclared checked exception", e);
554: }
555: }
556:
557: // Implementation of test_Void_String()
558: public java.lang.String test_Void_String()
559: throws java.rmi.RemoteException {
560: try {
561: java.lang.Object $result = ref.invoke(this ,
562: $method_test_Void_String_23, null,
563: -5382831137617544633L);
564: return ((java.lang.String) $result);
565: } catch (java.lang.RuntimeException e) {
566: throw e;
567: } catch (java.rmi.RemoteException e) {
568: throw e;
569: } catch (java.lang.Exception e) {
570: throw new java.rmi.UnexpectedException(
571: "Undeclared checked exception", e);
572: }
573: }
574: }
|