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

(fs) Path.relativize() gives incorrect result for empty path on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b51
    • OS:
      windows

      Backports

        Description

        Paths.get("").relativize(Paths.get("x")) different on Windows and Unix. On Windows, it's ..\x. On Unix (Mac OS X here), it's x.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                bpb Brian Burkhalter
                Reporter:
                bpb Brian Burkhalter
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: