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

java.io.File.getCanonicalPath still does not handle drive-relative paths (win32)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.2.0
    • core-libs
    • None
    • 1.2fcs
    • generic
    • generic
    • Not verified

      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

            mr Mark Reinhold
            mr Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: