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

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Tue Mar 12 08:21:52 UTC 2019


Hi Roger, 

yes, it works with a capital 'C'.

Should the constructor do 
  this.root = root.toLowerCase()?

Or should the equals method do 
  root.toLowerCase().equals(other.root.toLowerCase())?

Best regards,
  Goetz.


> -----Original Message-----
> From: nio-dev <nio-dev-bounces at openjdk.java.net> On Behalf Of Roger Riggs
> Sent: Montag, 11. März 2019 16:52
> To: nio-dev at openjdk.java.net
> Subject: Re: java/nio/file/Files/CopyAndMove.java is failing
> 
> 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