summaryrefslogtreecommitdiff
path: root/tools/gnu/classpath/tools/rmic/templates/StubMethod.jav
blob: 17636deb67081ecb91bdae51cd85745f312c9f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  /** @inheritDoc */
  public #return_type #method_name(#argument_list) #throws
  {
    try
      {
        InputStream in = null;
        try
          {
             OutputStream out = 
               (OutputStream) _request("#giop_method_name", true);
#argument_write                
             in = _invoke(out);
             #read_return
          }
        catch (ApplicationException ex)
          {
             in = ex.getInputStream();
             throw new UnexpectedException(in.read_string());
          }
        catch (RemarshalException ex)
          {
             return #method_name(#argument_names);
          }
        finally
          {
             _releaseReply(in);
          }
        }
    catch (SystemException ex)
      {
        throw Util.mapSystemException(ex);
      }
   }