If I implement Externalizable, will I need to specify serialVersionUID in that class for version compatibility?
In other words, does Java check serialVersionUID while deserializing Externalizable objects?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Even through a class is Externalizable, one still has to add
a serialVersionUID member to the class to indicate even though
the interface to the class has changed, it is still compatible
as far as the serialized or externalized form of the class.
https://bugs.java.com/bugdatabase/view_bug?bug_id=4094702