Any idea if standard (default) serialization with java 7 should be read (deserialize) with java 6?
1 Answer
It can be read provided you don't serialise any classes added in Java 7. i.e. you still need every class used on the receiving end.
BTW There were incompatible changes made between Java 1.3 and 1.4 AFAIK. You should be ok back to Java 1.4.
2 Comments
pap
Also assuming that the classes haven't changed, right? Assuming the JDK follows Java's own convention, checking that the serialVersionUid is the same between the version should be enough.
Peter Lawrey
It is possible to handle changes with some care but that's not really a Java 6 vs 7 issue. ;)