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

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

XMLWordPrintable

    • 1.2beta4
    • x86, sparc
    • solaris_2.5.1, windows_95
    • Not verified

      Under windows, something like:

          C:foo

      Is the same as:

          C:\current\directory\foo

      At least that has always been my understanding (i.e., cd to cd:\foo, create
      bar.txt, and type: "type c:bar.txt".

      getCanonicalPath when passed "C:" or "C:foo" seems to be returning
      C:\current\directory\c: or C:\current\directory\c:foo.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: