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

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

XMLWordPrintable

    • b134

      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.

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

              Created:
              Updated:
              Resolved: