[fs] Accept Paths.get("/c:/x") on Windows?

Wang Weijun weijun.wang at oracle.com
Sun Jan 4 08:00:46 UTC 2015


Unfortunately I found inside a JDK test a URL like file:./x is used, and it cannot be converted to a URI. Some sort of old trick is still needed.

--Max

> On Jan 1, 2015, at 16:09, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> On 30/12/2014 14:01, Wang Weijun wrote:
>> Is Paths.get(url.toURI()) designed for this?
>> 
>> 
> It's intended for URI -> Path conversions. The URI might come from a URL of course.
> 
> -Alan



More information about the nio-dev mailing list