站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java Object Serialization Specification: 5 - Versioning of Serializable Objects - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

CONTENTS | PREV | NEXT Java Object Serialization Specification


5.3 Assumptions

The assumptions are that:

  • Versioning will only apply to serializable classes since it must control the stream format to achieve it goals. Externalizable classes will be responsible for their own versioning which is tied to the external format.
  • All data and objects must be read from, or skipped in, the stream in the same order as they were written.
  • Classes evolve individually as well as in concert with supertypes and subtypes.
  • Classes are identified by name. Two classes with the same name may be different versions or completely different classes that can be distinguished only by comparing their interfaces or by comparing hashes of the interfaces.
  • Default serialization will not perform any type conversions.
  • The stream format only needs to support a linear sequence of type changes, not arbitrary branching of a type.


CONTENTS | PREV | NEXT
Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.