<Swing Dev> JDK9 Review Request for 8067660: JFileChooser create new folder fails silently
Rajeev Chamyal
rajeev.chamyal at oracle.com
Wed Nov 25 17:37:07 UTC 2015
Hello Alexandr,
Thanks for the review.
I think other reason apart from access denied could be lack of space on device/drive.
The API documentation for File.mkdirs is not very clear on reasons when the method will return false.
Returns:
true if and only if the directory was created, along with all necessary parent directories; false otherwise.
Please let me know if your inputs on this.
Regards,
Rajeev Chamyal
From: Alexandr Scherbatiy
Sent: 25 November 2015 21:30
To: Rajeev Chamyal
Cc: Prasanta Sadhukhan; Sergey Bylokhov; swing-dev at openjdk.java.net
Subject: Re: <Swing Dev> JDK9 Review Request for 8067660: JFileChooser create new folder fails silently
19.11.2015 13:09, Rajeev Chamyal пишет:
Hello All,
Please review the following fix for Jdk9:
Bug: https://bugs.openjdk.java.net/browse/JDK-8067660
Webrev: HYPERLINK "http://cr.openjdk.java.net/%7Erchamyal/8067660/webrev.00/"http://cr.openjdk.java.net/~rchamyal/8067660/webrev.00/
Issue: jFileChooser create new folder fails silently on windows without any exception.
Fix: Throwing an IOException from GenericFileSystemView:: createNewFolder, WindowsFileSystemView:: createNewFolder and UnixFileSystemView:: createNewFolder if mkdirs call returns false.
The exception message in the fix is: "Access denied". Are there other reasons for which the File.mkdirs() can return false?
Thanks,
Alexandr.
Regards,
Rajeev Chamyal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20151125/8f5a5d1a/attachment.html>
More information about the swing-dev
mailing list