Zip file system provider only works with default file system

Philippe Marschall philippe.marschall at
Sun Dec 9 06:54:13 PST 2012

On Sat, Dec 8, 2012 at 11:52 AM, Alan Bateman <Alan.Bateman at> wrote:
> On 07/12/2012 23:05, Philippe Marschall wrote:
>> Hi
>> First, I hope I got the right mailing list. I'm in the process of
>> writing my own file system provider. As a test I wanted to create a
>> zip file on it using the zip file system provider. That's when I
>> discovered that it only works with the default file system.
> Thanks for the bug report, It's possible that zip provider has been tested
> with other providers. Is your provider interposing on the system-default or
> is a distinct provider? I'm curious how you ran into this.
> You might know this already but zip provider ships as a demo provider
> (source code is the demo directory) so it might be easy for you to test your
> patch and also see if there are any other issues. I think it would be useful
> to know if there are any other issues.

I tested the updated method with the demo provider (I changed the
scheme and the package to avoid conflicts) and it works. I did a quick
code review and that was the only reference to file that I could find.

Having that said I'm a bit confused by the JarFileSystemProvider. It's
a subclass of ZipFileSystemProvider but has the scheme and is not
referenced anywhere.


More information about the nio-dev mailing list