java/nio/file/Files/CopyAndMove.java is failing

Roger Riggs Roger.Riggs at oracle.com
Mon Mar 11 15:52:26 UTC 2019


Hi,

I notice that WindowsFileStore.equals does a case sensitive
comparison on the root name and the output in the bug shows that
the drive letter has different case.
You could see if the test works with capital "C:".

Regards, Roger


On 03/08/2019 09:24 AM, Lindenmaier, Goetz wrote:
>
> Hi,
>
> could I get some help with this failure?
>
> We are setting java.io.tempdir in our jtreg runs.
>
> With this setting, the test fails on windows.
>
> It reproduces easily on any call to jtreg.
>
> boolean sameDevice = getFileStore(dir1).equals(getFileStore(dir2));
>
> returns false, although the directories are on the same disk etc.
>
> Later, the test succeeds moving the file.
>
> See also what I posted to
>
> https://bugs.openjdk.java.net/browse/JDK-8219644
>
> 8219644: java/nio/file/Files/CopyAndMove.java: Test threw exception: 
> java.lang.RuntimeException: AtomicMoveNotSupportedException expected
>
> Best regards,
>
>   Goetz.
>



More information about the nio-dev mailing list