[
https://issues.apache.org/jira/browse/CHAIN-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096006#comment-13096006
]
Elijah Zupancic commented on CHAIN-49:
--------------------------------------
Is there a unit test anywhere that reproduces this bug?
> ContextBase not deserialized correctly
> --------------------------------------
>
> Key: CHAIN-49
> URL: https://issues.apache.org/jira/browse/CHAIN-49
> Project: Commons Chain
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: RMI
> Reporter: Bert Courtyn
>
> When deserializing ContextBase, the transient property _descriptors_ isn't
> deserialized. The comment in the code says that those fields should be filled
> in by the non argument constructor, but this isn't correct.
> Because ContextBase extends HashMap, which implements the
> Serialisable-interface, it's not the constructor of ContextBase that is
> called but the non-argument constructor of AbstractMap (superclass of HashMap
> and the first superclass which doesn't implement Serialisable).
> Therefore the initialize method of ContextBase is never called when a
> ContextBase-object is deserialized and the _descriptors_-property is never
> set.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira