OSDN Git Service

Merged gcj-eclipse branch to trunk.
[pf3gnuchains/gcc-fork.git] / libjava / classpath / tools / gnu / classpath / tools / rmic / templates / Stub_12.jav
1 package #package;
2
3 #imports
4 import java.lang.reflect.Method;
5 import java.rmi.server.RemoteRef;
6 import java.rmi.server.RemoteStub;
7 import java.rmi.UnexpectedException;
8
9 /**
10  * This class delegates its method calls to the remote RMI object, referenced
11  * by {@link RemoteRef}. 
12  *
13  * It is normally generated with rmic.
14  */
15 public final class #name_Stub 
16     extends RemoteStub
17     implements #interfaces
18 {
19     /**
20      * Use serialVersionUID for interoperability 
21      */
22     private static final long serialVersionUID = 2;
23     
24     /**
25      * The explaining message for {@ling UnexpectedException}.
26      */
27     private static final String exception_message = 
28       "undeclared checked exception";
29
30      /* All remote methods, invoked by this stub: */
31 #stub_method_declarations
32     #zeroSizeObjecArray
33     static
34       {
35         #zeroSizeClassArray      
36         try 
37           {
38 #stub_method_initializations
39           }
40         catch (NoSuchMethodException nex)
41           {
42              NoSuchMethodError err = new NoSuchMethodError(
43                "#name_Stub class initialization failed");
44              err.initCause(nex);
45              throw err;
46           }  
47       }
48     
49     /**
50      * Create the instance for _#name_Stub that forwards method calls to the
51      * remote object.
52      *
53      * @para the reference to the remote object.
54      */
55     public #name_Stub(RemoteRef reference) 
56     {
57        super(reference);
58     }    
59     
60     /* Methods */    
61 #stub_methods    
62 }