Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8256480

Refactor ObjectInputStream field reader implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
      None

      Description

      ObjectInputStream has nearly identical but separate implementations to read values from the stream.
      Both read primitive and object values from the stream and return an object holding the values.
      OIS.readFields() uses the internal class GetFieldImpl while OIS.defaultReadObject and reading Records uses the internal class FieldValues.
      The significant difference between the two is whether dependencies are tracked or not in the object handle table.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rriggs Roger Riggs
              Reporter:
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: