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

ContextBase not deserialized correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2
    • None
    • Base
    • None
    • 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

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

            Dates

              Created:
              Updated: