/[classpath]/classpath/org/omg/CosNaming/_NamingContextStub.java
ViewVC logotype

Diff of /classpath/org/omg/CosNaming/_NamingContextStub.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by audriusa, Sun May 15 01:09:30 2005 UTC revision 1.2 by audriusa, Wed Jun 1 13:26:43 2005 UTC
# Line 70  public class _NamingContextStub Line 70  public class _NamingContextStub
70    implements NamingContext    implements NamingContext
71  {  {
72    /**    /**
73       * Use serialVersionUID (v1.4) for interoperability.
74       */
75      private static final long serialVersionUID = -389233044945385889L;
76    
77      /**
78     * Create the naming context stub.     * Create the naming context stub.
79     */     */
80    public _NamingContextStub()    public _NamingContextStub()
# Line 109  public class _NamingContextStub Line 114  public class _NamingContextStub
114      catch (ApplicationException ex)      catch (ApplicationException ex)
115        {        {
116          in = ex.getInputStream();          in = ex.getInputStream();
117    
118          String id = ex.getId();          String id = ex.getId();
119          throw5(in, id);          throw5(in, id);
120        }        }
# Line 169  public class _NamingContextStub Line 175  public class _NamingContextStub
175      catch (ApplicationException ex)      catch (ApplicationException ex)
176        {        {
177          in = ex.getInputStream();          in = ex.getInputStream();
178    
179          String id = ex.getId();          String id = ex.getId();
180          throw5(in, id);          throw5(in, id);
181          throw new InternalError();          throw new InternalError();
# Line 284  public class _NamingContextStub Line 291  public class _NamingContextStub
291      catch (ApplicationException ex)      catch (ApplicationException ex)
292        {        {
293          in = ex.getInputStream();          in = ex.getInputStream();
294    
295          String id = ex.getId();          String id = ex.getId();
296          throw4(in, id);          throw4(in, id);
297        }        }
# Line 312  public class _NamingContextStub Line 320  public class _NamingContextStub
320      catch (ApplicationException ex)      catch (ApplicationException ex)
321        {        {
322          in = ex.getInputStream();          in = ex.getInputStream();
323    
324          String id = ex.getId();          String id = ex.getId();
325          throw4(in, id);          throw4(in, id);
326        }        }
# Line 342  public class _NamingContextStub Line 351  public class _NamingContextStub
351      catch (ApplicationException ex)      catch (ApplicationException ex)
352        {        {
353          in = ex.getInputStream();          in = ex.getInputStream();
354    
355          String id = ex.getId();          String id = ex.getId();
356          throw4(in, id);          throw4(in, id);
357          throw new InternalError();          throw new InternalError();
# Line 406  public class _NamingContextStub Line 416  public class _NamingContextStub
416     * @throws MARSHAL if the id does not match any of the previous 4 exceptions.     * @throws MARSHAL if the id does not match any of the previous 4 exceptions.
417     */     */
418    protected void throw4(InputStream in, String id)    protected void throw4(InputStream in, String id)
419                 throws MARSHAL, InvalidName, CannotProceed,                   throws MARSHAL, InvalidName, CannotProceed, NotFound
                       NotFound  
420    {    {
421      if (id.equals(NotFoundHelper.id()))      if (id.equals(NotFoundHelper.id()))
422        throw NotFoundHelper.read(in);        throw NotFoundHelper.read(in);
# Line 435  public class _NamingContextStub Line 444  public class _NamingContextStub
444     * @throws MARSHAL if the id does not match any of the previous 4 exceptions.     * @throws MARSHAL if the id does not match any of the previous 4 exceptions.
445     */     */
446    protected void throw5(InputStream in, String id)    protected void throw5(InputStream in, String id)
447                 throws MARSHAL, AlreadyBound, InvalidName, CannotProceed,                   throws MARSHAL, AlreadyBound, InvalidName, CannotProceed,
448                        NotFound                          NotFound
449    {    {
450      if (id.equals(AlreadyBoundHelper.id()))      if (id.equals(AlreadyBoundHelper.id()))
451        throw AlreadyBoundHelper.read(in);        throw AlreadyBoundHelper.read(in);
452      else      else
453        throw4(in, id);        throw4(in, id);
454    }    }
455  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26