Add field setter API for setting final fields in readObject

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: 9
    • Component/s: core-libs
    • None

      The pattern of using ObjectInputStream.readFields() ( returns a GetField ) to read the deserialized stream's fields, and validate them before assigning to the object's fields does not work with final fields.

      This bug has been filed to investigate the possibility of adding a new field access API to support setting final fields in readObject.

            Assignee:
            Peter Levart
            Reporter:
            Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: