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

Regression bug:java.lang.InternalError using JFileChooser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.0
    • client-libs

      When using JFileChooser, the application crashed throwing java.lang.InternalError. This was found happening in Windows2000 professional edition and WindowsME.

      Error seen in the console:

      Exception in thread "main" java.lang.InternalError: Could not parse file path
              at sun.awt.shell.Win32ShellFolder.initFile(Native Method)
              at sun.awt.shell.Win32ShellFolder.<init>(Unknown Source)
              at sun.awt.shell.Win32ShellFolder.getCanonicalFile(Unknown Source)
              at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addI
      tem(Unknown Source)
              at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.acce
      ss$2200(Unknown Source)
              at javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(Unknown
      Source)
              at javax.swing.plaf.metal.MetalFileChooserUI.access$2400(Unknown Source)

              at javax.swing.plaf.metal.MetalFileChooserUI$11.propertyChange(Unknown S
      ource)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unkno
      wn Source)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unkno
      wn Source)
              at javax.swing.JComponent.firePropertyChange(Unknown Source)
              at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
              at javax.swing.JFileChooser.<init>(Unknown Source)
              at javax.swing.JFileChooser.<init>(Unknown Source)
              at FileChooserDemo.<init>(FileChooserDemo.java:21)
              at FileChooserDemo.main(FileChooserDemo.java:73)

      Code to reproduce the bug:

      import javax.swing.*;

      class FileChooserTest {
        public static void main(String args[]) {
          JFileChooser jfc = new JFileChooser();
        }
      }

            leifs Leif Samuelsson (Inactive)
            sramansunw Sridhar Raman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: