-
Bug
-
Resolution: Fixed
-
P3
-
1.1.4, 1.1.5
-
1.2fcs
-
x86
-
windows_nt
-
Not verified
Name: vuC71690 Date: 12/03/97
For pathnames of the form `x:' method File.isDirectory() always
returns false, and method File.lastModified() always returns 0.
Here is the test that demonstrates the bug:
----8<---- StatTest.java ----8<----
import java.io.File;
class StatTest {
public static void main (String[] args) {
File ccwd = new File ("c:");
System.out.println("dirp = " + ccwd.isDirectory());
System.out.println("mtime = " + ccwd.lastModified());
}
}
----8<---- Output from StatTest ----8<----
dirp = false
mtime = 0
======================================================================
- duplicates
-
JDK-4132344 java.io.File.isDirectory returns false on path "C:"
- Closed