Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-76

Add support for deserializing constructors

XMLWordPrintable

    • High

      In addition to readObject() methods, we should support a (possibly annotated) constructor (with any access level) which accepts an ObjectInputStream and can reconstruct itself that way. This would allow regular Serializable objects to have final fields.

      Or, perhaps something on the order of Externalizable would be more appropriate.

      Issues: the constructor will have to know which super() to call, and super() will have to be of an appropriate visibility level.

              Unassigned Unassigned
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: