Bug in Files.createDirectories(Path, FileAttribute<?>...)
Alan Bateman
Alan.Bateman at oracle.com
Tue Jan 21 01:39:14 PST 2014
On 18/01/2014 17:57, Alan Bateman wrote:
> Files.createDirectories may be overly reliant on specific exceptions
> bring thrown by the underlying FileSystemProvider. On OS X then it
> seems that mkdir returns a special error for /. It also appears that
> Windows does something special for root directories too. Linux seems
> to be okay. In any case, I'll create a bug for this. It hasn't been
> reported before (to my knowledge anyway).
This is now fixed in jdk9/dev (the development forest for JDK 9). It's a
good candidate to put into jdk8u-dev too (jdk8u-dev is currently open
for fixes for 8u20). Thanks again for the bug report, clearly a corner
case that we missed.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20140121/37bf95ee/attachment.html
More information about the nio-discuss
mailing list