Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8071471 Serialization Improvements
  3. JDK-8071472

Add field setter API for setting final fields in readObject

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 9
    • 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.

            plevart Peter Levart
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: