Why does Path check for the Default FileSystem?

Alan Bateman Alan.Bateman at oracle.com
Tue Mar 23 17:44:38 UTC 2021


On 23/03/2021 13:47, Michael Hall wrote:
> :
> My Default Path class has…
>
>      @Override
>      public final File toFile() {
>      	return proxy.toFile();
>      }
>
This will delegate to the built-in provider's toFile that will not match 
the default file system. If you remove the override of toFile then I 
would expect it should work.

-Alan


More information about the nio-dev mailing list