Using readClassDescriptor() and maybe resolveClass() to permit Serialization versioning
问题 I am investigating different options in the Java Serialization mechanism to allow flexibility in our class structures for version-tolerant storage (and advocating for a different mechanism, you don't need to tell me). For instance, the default serialization mechanism can handle both adding and removing fields, if only backwards compatibility is required. Renaming a class or moving it to a different package has proved to be much harder, though. I found in this question that I was able to do a