3

Any idea if standard (default) serialization with java 7 should be read (deserialize) with java 6?

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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.
It is possible to handle changes with some care but that's not really a Java 6 vs 7 issue. ;)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.