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 |
|
|
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 |
} |
} |