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

(fs spec) FileSystems.getDefault incorrectly states that getFileSystem creates default file system

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 7
    • 7
    • core-libs
    • None
    • generic
    • generic

    Description

      FileSystems.getDefault has a confusing statement for the case that the default provider is replaced. It states:

      "The last provider to be instantiated becomes the default provider; its getFileSystem method is invoked with the URI "file:///" to create the default file system."

      This isn't quite right, as the getFileSystem method is used to get a reference to a file system (not create it). This should be re-worded to say that the getFileSystem method is used to get a reference to the default file system that is created automatically, or thaht the newFileSystem(URI) method is invoked to create the default file system.

      See background discussion at:
        http://mail.openjdk.java.net/pipermail/nio-discuss/2009-August/000300.html

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: