< prev index next >

src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java

Print this page
rev 48355 : Fixed 8194044: Regression  manual Test javax/swing/JFileChooser/8067660/FileChooserTest.java fails
Added a test case as well for the fix.
Incorporated changes suggested by Jay.

*** 446,456 **** if (dir instanceof Win32ShellFolder2) { Win32ShellFolder2 sf = (Win32ShellFolder2)dir; return (sf.isFileSystem() && sf.parent != null && ! sf.parent.equals(Win32ShellFolder2.listRoots())); } String path = dir.getPath(); if (path.length() != 3 || path.charAt(1) != ':') { return false; --- 446,456 ---- if (dir instanceof Win32ShellFolder2) { Win32ShellFolder2 sf = (Win32ShellFolder2)dir; return (sf.isFileSystem() && sf.parent != null && ! sf.parent.equals(getDrives())); } String path = dir.getPath(); if (path.length() != 3 || path.charAt(1) != ':') { return false;
< prev index next >