Community
Participate
Working Groups
The serialVersionID's calculated by both the Eclipse compiler (for instance, on a client machine) and Sun's JDK compiler (for instance, on a server) produce different serialVersionID's. This was observed using the 2/14 and 1/25 stable builds of Eclipse and versions 1.3.1_02 and 1.4.0 of Sun's JDK.
The serialVersionUID is computed based on the shape of the classfile. This ID computation will however expose differences in compiler implementation around synthetics added to the classfile (access methods etc...), and there is no specification describing what these should be. Therefore each compiler implementation can come up with different strategies, and serialization is affected by this. You can experience this as well when using different versions of the same compiler. The serialVersionUID is tied with a particular compiler implementation, given it is a non-specified behavior. The best answer is to ensure you always recompile your sources with the same one compiler, whatever this is. Ok to close ?
Closing
*** Bug 39317 has been marked as a duplicate of this bug. ***
*** Bug 24370 has been marked as a duplicate of this bug. ***
*** Bug 30209 has been marked as a duplicate of this bug. ***
*** Bug 37940 has been marked as a duplicate of this bug. ***
*** Bug 43313 has been marked as a duplicate of this bug. ***
*** Bug 50958 has been marked as a duplicate of this bug. ***
*** Bug 51843 has been marked as a duplicate of this bug. ***
*** Bug 71485 has been marked as a duplicate of this bug. ***
how much more detail than that in the specification do you need? http://java.sun.com/j2se/1.3/docs/guide/serialization/spec/class.doc6.html
sorry, after reading the explanations in a duplicate bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=30209) I agree with closing this issue. however, the explanations should be linked in this bug report, which seems to be the root of all duplicates.
Thanks for having added a pointer to the most informative defect.
*** Bug 77445 has been marked as a duplicate of this bug. ***
*** Bug 304048 has been marked as a duplicate of this bug. ***