OSDN Git Service

Merged gcj-eclipse branch to trunk.
[pf3gnuchains/gcc-fork.git] / libjava / classpath / tools / gnu / classpath / tools / rmic / templates / StubMethod.jav
1   /** @inheritDoc */
2   public #return_type #method_name(#argument_list) #throws
3   {
4     try
5       {
6         InputStream in = null;
7         try
8           {
9              OutputStream out = 
10                (OutputStream) _request("#giop_method_name", true);
11 #argument_write                
12              in = _invoke(out);
13              #read_return
14           }
15         catch (ApplicationException ex)
16           {
17              in = ex.getInputStream();
18              throw new UnexpectedException(in.read_string());
19           }
20         catch (RemarshalException ex)
21           {
22              return #method_name(#argument_names);
23           }
24         finally
25           {
26              _releaseReply(in);
27           }
28         }
29     catch (SystemException ex)
30       {
31         throw Util.mapSystemException(ex);
32       }
33    }