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

(fs) Path.relativize() gives incorrect result for ".."

    XMLWordPrintable

Details

    • b134

    Description

      Paths.get("..").relativize(Paths.get("x")) returns "../x", while actually it should be the "current working directory/x". Of course we don't know what cwd is, so maybe an IAE should be thrown.

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              weijun Weijun Wang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: