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

Typos in java.io.File.getCanonicalFile, getAbsoluteFile

XMLWordPrintable

    • b57
    • generic
    • generic

      Name: aaR10208 Date: 07/15/2003



      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b10
      Platform[s] : generic

      There are two typos in java.io.File methods' description:
      ===
      public File getAbsoluteFile()
           Returns the absolute form of this abstract pathname. Equivalent to new File(this.getAbsolutePath()()).

      public File getCanonicalFile()
                             throws IOException
           Returns the canonical form of this abstract pathname. Equivalent to new File(this.getCanonicalPath()()).
      ===

      Note the double "()": "this.getAbsolutePath()()".

      ======================================================================

            sherman Xueming Shen
            sundrsunw Sundr Sundr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: