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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2beta4
    • CPU:
      x86, sparc
    • OS:
      solaris_2.5.1, windows_95
    • Verification:
      Not verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: