Replacing default FileSystemProvider
Michael Hall
mik3hall at gmail.com
Sat Mar 20 20:15:35 UTC 2021
>>>
>> The default file system provider is called to create the default file system so your TestProvider's getFileSystem(URI) method is invoked to create the "file:///" file system. It looks like your TestProvider is returning null so I assume this is why you are seeing NPE (assuming TestProvider is representative of the actual file system provider you are using). There is more detail on the javadoc of FileSystem.getDefault().
>
Getting a bit confusing on the simple test case.
For some reason currently I get ClassNotFoundExceptions on the provider org.test.TestProvider with -cp ./test.jar
I don’t if I fallback to 1.8 or include the current directory with the compiled org/test/*class. Like -cp .:./test.jar
If no obvious suggestions I’ll get back to doing my own debugging against my actual provider.
Thanks for replies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20210320/2f108c03/attachment.htm>
More information about the nio-dev
mailing list