JDK-4486911 : Win2K: FileSystemView.isFileSystem(File) return false for the directories
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2001-08-01
  • Updated: 2002-06-16
  • Resolved: 2002-04-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.1 hopperFixed
Related Reports
Relates :  
Relates :  
Description
ingrid.yao@Eng 2001-08-01

J2SE Version (please include all output from java -version flag):
  java version "1.4.0-beta_refresh"
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refres
  Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b72, mixed mode)

Does this problem occur on J2SE 1.3?  Yes / No (pick one)
 No.

Operating System Configuration Information (be specific):
  Windows 2000, Fixpack 2, German(Same problem can be reproduced
  on Windows 2000 US version), but works fine on WinNT machine.

Hardware Configuration Information (be specific):
  Intel PIII-866, 256 MB, ...

Bug Description:
  javax.swing.filechooser.FileSystemView.isFileSystem(File)
  answers false for the ShellFolder "Eigene Dateien", which
  is "My Documents" in english. Since this folder is a true file system
  folder, an answer of true is expected instead.

Steps to Reproduce (be specific):
  Open the JDK FileChooserDemo on Windows. Then
  choose to "select a directory" and open a Windows
  file chooser. One can't select folder "Eigene Dateien"
  ("My Documents" in english), instead it just navigates through
  the directory and lists out the subdirectories.

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

To test this on Windows:

1. Start FileChooserDemo

2. Click "Just Select Directories"

3. Click "Show FileChooser"

4. Make sure "My Documents" is selected (typically
   the default). This fails on 1.4.

5. Click Ok.

6. Verify that the message box says you selected the
   full path to the folder (varies by OS).


Repeat test for the desktop folder instead of "My Documents"


###@###.### 2002-04-19

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper FIXED IN: hopper INTEGRATED IN: hopper VERIFIED IN: hopper-beta
14-06-2004

EVALUATION The "My Documents" folder is special because it is both a system shell folder and a directory. It is possible to fix this by adding a lot of special case tests in the JFileChooser code, but it is too risky to introduce this much change to the logic in merlin at this time. ###@###.### 2001-09-25
25-09-2001