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

Regression: new serialization model can lead to NotSerializableExceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: