AW: Misleading Javadoc for Path.toURI()

Alan Bateman Alan.Bateman at oracle.com
Thu May 26 12:32:48 PDT 2011


Christian Schlichtherle wrote:
>
> I wasn't aware that there is an update to RFC 2396?! I am relying on 
> this RFC because TrueZIP's FsPath implementation (conceptually similar 
> to Path) is also using the "legacy JAR URI syntax".
>
There was an attempt to move to RFC 3986 in jdk6 but it had to be backed 
out due to several compatibility issues. At some point this will need to 
be re-examined again as 2396 is very old.
>
>  
>
> BTW: I'm not sure I like the fact that Path is tied to FileSystem. 
> It's a constraint when implementing a FileSystemProvider like TrueZIP 
> where such boundaries do not exist. Now I have to create dummy 
> FileSystem objects just to please the API.
>
It has to be associated with a FileSystem as otherwise it would not be 
possible to use it to locate a file. I don't think I fully understand 
what you are doing but it sounds like it's a composite 
FileSystemProvider that delegates to other providers such as the zip 
provider - is that right?

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20110526/0e15853b/attachment.html 


More information about the nio-discuss mailing list