Regression bug:java.lang.InternalError using JFileChooser

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.4.0
    • Component/s: 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();
        }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: