Circular loading of installed providers detected

Michael Hall mik3hall at gmail.com
Wed Sep 29 23:56:05 UTC 2021



> On Sep 29, 2021, at 5:18 PM, Michael Hall <mik3hall at gmail.com> wrote:
> 
>>>> 
>>> If you change the public constructor to have a FileSystemProvider parameter then it will be called with a reference to the built-in provider. That should avoid the need to iterated through the installed providers.
>>> 

It occurred to me setting a static priorProvider at startup would still be a work around.
So I put the no args back in but it just throws an exception if the priorProvider is null, otherwise does nothing else.
Invoking jshell…

 System.out.println("Hello, World!")
error: No file system provider is available to handle this file: /Users/mjh/HalfPipe/HalfPipe_jpkg/outputdir/HalfPipe.app/Contents/app/halfpipe.jar

It gives that error for every jar in java.class.path, but then,

Hello, World!

A fairly ugly workaround at this point but a work around. 
Having a one time and one time only method like installedProviders() is sort of strange. 


More information about the nio-dev mailing list