You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Timothy Ward (JIRA)" <ji...@apache.org> on 2011/05/31 18:36:47 UTC
[jira] [Commented] (ARIES-665) Proxy weaving code must preserve
SerialVersionUID
[ https://issues.apache.org/jira/browse/ARIES-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041661#comment-13041661 ]
Timothy Ward commented on ARIES-665:
------------------------------------
Clearly everyone should define a serialVersionUID, but a lot of people don't so this does need a fix. Fortunately there is an ASM utility class that can do the heavy lifting for us.
> Proxy weaving code must preserve SerialVersionUID
> -------------------------------------------------
>
> Key: ARIES-665
> URL: https://issues.apache.org/jira/browse/ARIES-665
> Project: Aries
> Issue Type: Bug
> Components: Proxy
> Reporter: David Jencks
> Assignee: Timothy Ward
>
> The proxy weaving code changes the SerialVersionUID when it modifies the bytecode, so serialized classes that don't hardcode the SerialVersionUID are not compatible between plain and woven versions. I assume that having the weaver add the field if missing would fix this: manually adding it to classes seems to avoid the problem.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira