JDK-7007602 : (fs) newFileSystem should not require an environment when opening a file as a file system
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-12-17
  • Updated: 2011-01-19
  • Resolved: 2011-01-19
Related Reports
Duplicate :  
Description
jdk-version: jdk7/pit/b123

when newing a zipfs instance, null env map should be allowed to be passed in as a parameter in 
public static FileSystem newFileSystem(FileRef file,
                                       Map<String,?> env,
                                       ClassLoader loader)
                                throws IOException
and the alike.

Currently, at leaset an empty map is needed, which seems doesn't make much sense.

Comments
EVALUATION The API will be updated to remove the env parameter as part of the updates coming in 7006126.
19-01-2011

EVALUATION This is not a bug as the spec requires NullPointerException to be thrown for this case. However, it is annoying to have to pass an environment and it may be better to change the API to not require an environment when opening a file as a file system. For that reason I will re-classify this as an RFE.
03-01-2011