RFR 8218875: Add new FileSystems.newFileSystem methods
Alan Bateman
Alan.Bateman at oracle.com
Wed Feb 20 10:35:27 UTC 2019
On 20/02/2019 10:23, Langer, Christoph wrote:
> :
>
> I think we should not become source incompatible. So what about
> spending a set of 3 methods that are named FileSystems::of that take a
> Path? And in any case, deprecate “newFileSystem(Path path,
> ClassLoader loader)”.
>
>
The source incompatibility issue is really minor but I know Lance is
exploring that. Adding new static factory methods named `of` is an idea
worth exploring though. The newFileSystem(Path path, ClassLoader
loader) is not toxic, it doesn't need to be deprecated because of new
overloads or alternative static factory methods.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190220/8e969773/attachment-0001.html>
More information about the nio-dev
mailing list