Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-49

ContextBase not deserialized correctly

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: Base
    • Labels:
      None
    • Environment:

      RMI

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bcourtyn Bert Courtyn
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: