[14] RFC: 8219644: java/nio/file/Files/CopyAndMove.java: Test threw exception: java.lang.RuntimeException: AtomicMoveNotSupportedException expected
Brian Burkhalter
brian.burkhalter at oracle.com
Thu Jun 13 17:51:57 UTC 2019
https://bugs.openjdk.java.net/browse/JDK-8219644 <https://bugs.openjdk.java.net/browse/JDK-8219644>
This particular problem was due to two Windows paths beginning with “c:” and “C:” respectively being considered as different FileStores. This is because equals() depends on String.equals() applied to the “root” instance variable in WindowsFileStore. Could this perhaps be changed to equalsIgnoreCase() (and hashCode() to use toLowerCase())? Is “root” always a drive letter or do other mount types come into play? Or maybe the test could be changed to be robust to case?
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190613/e16424c7/attachment.html>
More information about the nio-dev
mailing list