RFR 8218875: Add new FileSystems.newFileSystem methods

Roger Riggs roger.riggs at oracle.com
Tue Feb 19 21:15:18 UTC 2019


Hi Lance,

Did you consider alternative method names or signatures that would avoid
the ambiguity and the necessity of ugly/hacky casts of (ClassLoader)null)?

Perhaps adding a method that has only Path and assumes a null classloader?
   newFileSystem(Path).

??, Roger


On 2/19/19 3:54 PM, Lance Andersen wrote:
> Hi all,
>
> Please review the update to Filesystems which adds  the methods:
>
>  newFileSystem(Path, Map<String,?>) and newFileSystem(Path, 
> Map<String,?>, ClassLoader).
>
> These methods are being added to provide better support for working 
> with  the Zip File System.
>
> The webrev can be found at: 
> http://cr.openjdk.java.net/~lancea/8218875/webrev.00/index.html
>
> Best
> Lance
> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
> <http://oracle.com/us/design/oracle-email-sig-198324.gif><http://oracle.com/us/design/oracle-email-sig-198324.gif>
> <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance 
> Andersen| Principal Member of Technical Staff | +1.781.442.2037
> Oracle Java Engineering
> 1 Network Drive
> Burlington, MA 01803
> Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190219/4bdca1ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oracle_sig_logo.gif
Type: image/gif
Size: 658 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190219/4bdca1ab/oracle_sig_logo.gif>


More information about the nio-dev mailing list