[
https://issues.apache.org/jira/browse/BEANUTILS-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848397#action_12848397
]
Sebb commented on BEANUTILS-362:
--------------------------------
Yes, different JVMs can calculate different values for the same class. That is
one of the benefits of providing a fixed UID.
See the last paragraph of:
http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html
However, you could pick a popular JVM and decide to base the UID on that; it
will probably work for many users.
What one cannot do is to base the fixed UID on a previous version of the class,
unless the current version of the class is serially compatible with the old
version.
> Add serialVersionUID to Serializable classes
> --------------------------------------------
>
> Key: BEANUTILS-362
> URL: https://issues.apache.org/jira/browse/BEANUTILS-362
> Project: Commons BeanUtils
> Issue Type: Bug
> Reporter: Sebb
> Assignee: Niall Pemberton
> Fix For: 1.8.3
>
> Attachments: beanutils-362.diff
>
>
> The following classes are Serializable, but don't have serialVersionUID
> defined:
> BasicDynaBean
> BasicDynaClass
> DynaProperty
> LazyDynaBean
> LazyDynaList
> Performance (and JVM interoperability) would be improved by adding the UIDs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.