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

A typo in the Java API doc for File.getUsableSpace()

XMLWordPrintable

    • b16
    • Not verified

      A DESCRIPTION OF THE PROBLEM :
      The link https://docs.oracle.com/javase/8/docs/api/java/io/File.html#getUsableSpace-- says:
      The returned number of available bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of **unallocated** bytes is most likely to be accurate immediately after this call. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this virtual machine. This method makes no guarantee that write operations to this file system will succeed.

      compared with the java doc of the getFreeSpace, it should be a bug or typo here saying **unallocated** here for this getUsableSpace API.


            bpb Brian Burkhalter
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: