diff options
Diffstat (limited to 'java/src/Ice/ObjectImpl.java')
-rw-r--r-- | java/src/Ice/ObjectImpl.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/java/src/Ice/ObjectImpl.java b/java/src/Ice/ObjectImpl.java index 4cb030d2dc6..6739b651903 100644 --- a/java/src/Ice/ObjectImpl.java +++ b/java/src/Ice/ObjectImpl.java @@ -203,4 +203,33 @@ public class ObjectImpl implements Object, java.lang.Cloneable __is.endReadSlice(); } + + public void + __write(Ice.OutputStream __out) + { + __out.writeTypeId(ice_staticId()); + __out.startSlice(); + __out.writeSize(0); // For compatibility with the old AFM. + __out.endSlice(); + } + + public void + __read(Ice.InputStream __in, boolean __rid) + { + if(__rid) + { + String myId = __in.readTypeId(); + } + + __in.startSlice(); + + // For compatibility with the old AFM. + int sz = __in.readSize(); + if(sz != 0) + { + throw new MarshalException(); + } + + __in.endSlice(); + } } |