java.io.File.equals should ignore "." elements when comparing paths

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • None
    • Affects Version/s: 1.2.0
    • Component/s: core-libs
    • None
    • generic
    • generic

      Seems like the following should be true, but are currently false:

      (new File("/a")).equals(new File("/a/."));
      (new File("/a/./foo.txt")).equals(new File("/a/foo.txt"))

      There are a couple of bugs outstanding against FilePermission that would
      be easier to fix if the above expressions returned true.

            Assignee:
            Mark Reinhold
            Reporter:
            Roland Schemers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: