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

Typo in java.io.File.toPath() API documentation

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      In both the synopsis and the detailed description of the toPath() method of class java.io.File it reads:
      "Returns a java.nio.file.Path object constructed from the this abstract path."

      Delete "the".

      The same applies to the documentation of java 8.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Returns a java.nio.file.Path object constructed from this abstract path.
      ACTUAL -
      Returns a java.nio.file.Path object constructed from the this abstract path.

      URL OF FAULTY DOCUMENTATION :
      https://docs.oracle.com/javase/9/docs/api/java/io/File.html

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: