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

Refactor ObjectInputStream field reader implementation

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 16
    • 16
    • core-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: