/[classpath]/classpath/gnu/java/rmi/server/RMIObjectOutputStream.java
ViewVC logotype

Diff of /classpath/gnu/java/rmi/server/RMIObjectOutputStream.java

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

revision 1.3 by cbj, Thu Mar 21 05:40:11 2002 UTC revision 1.4 by mark, Thu Oct 31 18:35:21 2002 UTC
# Line 1  Line 1 
1  /*  /*
2    Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.    Copyright (c) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 72  protected Object replaceObject(Object ob Line 72  protected Object replaceObject(Object ob
72          throws IOException          throws IOException
73  {  {
74      if((obj instanceof Remote) && !(obj instanceof RemoteStub)){      if((obj instanceof Remote) && !(obj instanceof RemoteStub)){
75              UnicastServerRef ref = new UnicastServerRef(new ObjID(), 0, null);              UnicastServerRef ref = UnicastServer.getExportedRef((Remote)obj);
76                  try{              if (ref != null)
77                      return ref.exportObject((Remote)obj);                      return ref.getStub();
                 }catch(Exception e){}  
78      }      }
79      return obj;      return obj;
80  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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