Documentation Contents |
Complete the following procedure to compile and run this example:
- From yourbasedir/objectserializationexamples/ExternalizationandEvolution, compile the Original Class using JDKTM 1.2 or higher:
javac ExternExampleOriginalClass.java- Run the Original Class with the serialization flag:
java ExternExampleOriginalClass -s- Compile the Evolved Class:
javac ExternExampleEvolvedClass.java- Run the Evolved Class with the deserialization flag:
java ExternExampleEvolvedClass -dThis procedure tests compatibility in one direction only. To test bidirectional compatibility, perform the same procedure in the other direction (in steps 1-4, replace the original class name with the evolved class name, and vice versa).
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved. Please send comments using this Feedback page. |
Java Technology |