发明名称 APPARATUS AND METHOD FOR ALLOWING OBJECT-ORIENTED PROGRAMS CREATED WITH DIFFERENT FRAMEWORK VERSIONS TO COMMUNICATE
摘要 A set of stream writer and reader class and methods enable object frameworks to communicate with each other despite problems with missing classes due to mismatched versions. The stream writers are modified to deal with a new version of a class that extends from a class in an existing version by writing alternate object information compatible with the existing version when the future object class information is streamed. In this manner, alternate object information is written for each older version. The information for each of the alternate objects corresponding to each oder version is added after the existing object information as an extension with the length of the extension written at the beginning. The stream readers are modified so that when an older version stream reader reads the object information and does not understand the first alternate object (which might correspond to a later version), it skips the length specified for that extension and reads the second alternate object. If the second alternate object information is not understood, the reader skips the non-understood object information and continues with each alternate object. If none of the alternates is understood, then an exception is thrown. In one embodiment, the information for alternate objects which are not used is not discarded, butis instead saved in a temporary storage. Then, if the object is streamed out again, the stored information is added back into the stream.
申请公布号 CA2312814(C) 申请公布日期 2005.06.28
申请号 CA19982312814 申请日期 1998.12.08
申请人 OBJECT TECHNOLOGY LICENSING CORPORATION 发明人 DAVIS, MARK;JABLONSKI, MARC
分类号 G06F9/44;G06F9/46;(IPC1-7):G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址