commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bert Courtyn (JIRA)" <>
Subject [jira] Created: (CHAIN-49) ContextBase not deserialized correctly
Date Wed, 12 Aug 2009 13:39:15 GMT
ContextBase not deserialized correctly

                 Key: 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.
You can reply to this email to add a comment to the issue online.

View raw message