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

Regression: Frames no longer serializable

XMLWordPrintable

    • 1.2beta4
    • x86, sparc
    • solaris_2.5, solaris_2.6, windows_nt
    • Not verified

      Frames can no longer be serialized because a new field: "private SoftReference
      softThis" was added to the class, but SoftReferences are not Serializable.
      Attempting to serialize a Frame now throws an Exception.

      Since "softThis" should be reset when the Frame is deserialized anyways, this
      field should be made transient.

      In addition, Frame.readObject() should be modified to give "softThis" a valid
      value before calling addToFrameList(). Otherwise, null will be inserted into
      the list, causing a NullPointerException when getFrames() is called.

            dmendenhsunw David Mendenhall (Inactive)
            dmendenhsunw David Mendenhall (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: