commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elijah Zupancic (JIRA)" <>
Subject [jira] [Commented] (CHAIN-49) ContextBase not deserialized correctly
Date Fri, 02 Sep 2011 14:20:09 GMT


Elijah Zupancic commented on CHAIN-49:

Is there a unit test anywhere that reproduces this bug?

> ContextBase not deserialized correctly
> --------------------------------------
>                 Key: CHAIN-49
>                 URL:
>             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:


View raw message