The regression test written for 4070044, which originally reported this bug, is
now failing. The getCanonicalPath method works fine as long as the current
directory of the drive in the input path is the root directory, but if not then
it fails to insert a separator between the directory and the filename. For
example, if the current directory of the C: drive is \foo\bar, then the
canonical path of C:baz is computed as C:\foo\barbaz when it should be
C:\foo\bar\baz. This bug is not reproducible in 1.2beta4. -- mr@eng 8/7/1998
now failing. The getCanonicalPath method works fine as long as the current
directory of the drive in the input path is the root directory, but if not then
it fails to insert a separator between the directory and the filename. For
example, if the current directory of the C: drive is \foo\bar, then the
canonical path of C:baz is computed as C:\foo\barbaz when it should be
C:\foo\bar\baz. This bug is not reproducible in 1.2beta4. -- mr@eng 8/7/1998
- relates to
-
JDK-4070044 java.io.File.getCanonicalPath does not handle drive-relative paths (win32)
-
- Closed
-