JDK-6875202 : (fs spec) FileSystems.getDefault incorrectly states that getFileSystem creates default file system
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2009-08-24
  • Updated: 2011-01-19
  • Resolved: 2011-01-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Duplicate :  
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

Comments
EVALUATION The text will be corrected as part of the changes coming in 7006126.
19-01-2011