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

FileSystemView.isFileSystemRoot causing various exceptions under 6u19

XMLWordPrintable

    • b05
    • x86
    • windows_xp
    • Verified

        FULL PRODUCT VERSION :
        java version "1.6.0_19"
        Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
        Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]

        A DESCRIPTION OF THE PROBLEM :
        Were seeing various exceptions from our users rooted at FileSystemView.isFileSystemRoot() under jdk 1.6.0_19 on XP, Vista, and Windows 7. We didn't get any of these under 1.6.0_18. We have automatic bug reporting for uncaught exceptions, so it seems extremely likely that these are newly introduced bugs. These are bug reports from our users and we have not seen them on our own systems, so at this point I am unable to provide a test case. Hopefully the stack dumps will reveal the problem(s).


        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        java.lang.NullPointerException
        at sun.awt.shell.Win32ShellFolder2.pidlsEqual(Unknown Source)
        at sun.awt.shell.Win32ShellFolder2.equals(Unknown Source)
        at sun.awt.shell.Win32ShellFolderManager2.isFileSystemRoot(Unknown Source)
        at sun.awt.shell.ShellFolder.isFileSystemRoot(Unknown Source)
        at javax.swing.filechooser.FileSystemView.isFileSystemRoot(Unknown Source)
        at javax.swing.filechooser.WindowsFileSystemView.isTraversable(Unknown Source)
        at javax.swing.JFileChooser.isTraversable(Unknown Source)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(Unknown Source)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(Unknown Source)

        --------------------------------------------------------------------------------------------------

        at java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
        at java.util.Arrays.asList(Arrays.java:3343)
        at sun.awt.shell.Win32ShellFolderManager2.isFileSystemRoot(Win32ShellFolderManager2.java:358)
        at sun.awt.shell.ShellFolder.isFileSystemRoot(ShellFolder.java:242)
        at javax.swing.filechooser.FileSystemView.isFileSystemRoot(FileSystemView.java:323)
        at javax.swing.filechooser.FileSystemView.getShellFolder(FileSystemView.java:531)
        at javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:443)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:218)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:211)


        REPRODUCIBILITY :
        This bug can be reproduced rarely.

        Release Regression From : 6u18
        The above release value was the last known release where this
        bug was not reproducible. Since then there has been a regression.

              rupashka Pavel Porvatov (Inactive)
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: