757 |
|
|
758 |
if (object == null) |
if (object == null) |
759 |
object = instantiate(offset, clz, g); |
object = instantiate(offset, clz, g); |
760 |
|
|
761 |
|
// The sentence below prevents attempt to read the internal fields of the |
762 |
|
// ObjectImpl (or RMI Stub) that might follow the object definition. |
763 |
|
// Sun's jre 1.5 does not write this information. The stubs, generated |
764 |
|
// by rmic, does not contain such fields. |
765 |
|
if (object instanceof ObjectImpl) |
766 |
|
return object; |
767 |
|
|
768 |
if (object instanceof Externalizable) |
if (object instanceof Externalizable) |
769 |
{ |
{ |