This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: serialVersionUID fixes
Michael Koch writes:
>
> From what I read in the mailinglists and the web I know that
> serialVersionUID in SUNs JDK is calced from their API. We need to
> have the some values in serialVersionUID because of serialization
> between libgcj and JDK versions over net. So I used the JDK 1.4.1
> serialver tool to get some (unfortunately not all) serial versions I
> knew that were missing (using some finds/greps) and added them.
This should only be done when serialVersionUID is different from that
returned by JDK. We should then figure out _why_ it's different
rather than just adding a nw method.
Andrew.