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

JFileChooser.getSelectedFile returns a non-serializable subclass of java.io.File

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.1
    • 1.4.0
    • client-libs
    • None
    • hopper
    • generic
    • generic
    • Verified

      JFileChooser.getSelectedFile may return subclass of java.io.File:
      javax.swing.filechooser.FileSystemView$FileSystemRoot. During serialization
      of this class there is fired exception NotSerializableException, that is
      clearly a bug in JDK 1.4.0 JFileChooser implementation.
      There may be other subclasses of java.io.File - all of them must be
      serializable and preferably deserialize to an instance of java.io.File (or to a fully functional descendant of it).

            leifs Leif Samuelsson (Inactive)
            dstrupl David Štrupl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: