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

What is the purpose of java.io.File.getCanonicalPath()?

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.3.1
    • 1.2.0
    • docs
    • ladybird
    • generic
    • generic



        Name: gsC80088 Date: 11/24/98


        The documentation at api/java/io/File.html#getCanonicalPath() does
        not explain the difference between getAbsolutePath() and getCanonicalPath()

        It appears that, for example, a complying implementation of
        getCanonicalPath() could simply call getAbsolutePath().

        Presumably there is some useful reason for the inclusion of these
        two different methods, it would be good to explain it a little better,
        perhaps with a concrete example of a situation where the two may differ.
        (Review ID: 43211)
        ======================================================================

              jhosunw Jamie Ho (Inactive)
              gstone Greg Stone
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: