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

Regression: new serialization model can lead to NotSerializableExceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • beta
    • generic
    • generic

      The new serialization scheme tries to serialize DropTargetListeners and
      DragSourceListeners owned by DropTargets and DragSources, respectively. These
      listeners will only be serialized if they implement Serializable. Unfortunately,
      existing applications may include such listeners, but may not have written those
      listeners to be serializable in practice. That is, they may contain
      non-transient fields of non-Serializable types. In that case, the new
      serialization scheme appears to break these existing applications. Although the
      bug is fundamentally in the application, this is too big of a backward-
      compatibility concern to just dump on developers.

      See attachments for test case.

            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: