java/nio/file/Files/CopyAndMove.java is failing
Lindenmaier, Goetz
goetz.lindenmaier at sap.com
Tue Mar 12 08:43:07 UTC 2019
Hi Alan,
feel free to re-purpose the bug.
I'll add some information about the cause of the failure
to it.
Tell me where I can further help with this issue.
Best regards,
Goetz.
> -----Original Message-----
> From: Alan Bateman <Alan.Bateman at oracle.com>
> Sent: Dienstag, 12. März 2019 09:28
> To: Lindenmaier, Goetz <goetz.lindenmaier at sap.com>; Roger Riggs
> <Roger.Riggs at oracle.com>; nio-dev at openjdk.java.net
> Subject: Re: java/nio/file/Files/CopyAndMove.java is failing
>
> On 12/03/2019 08:21, Lindenmaier, Goetz wrote:
> > 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())?
> Well spotted by Roger, it seems we have a long standing bug here. As
> regards fixing this when we can re-purpose the existing bug or create a
> new one. toLowerCase is locale sensitive, it's more likely that it
> should be equalsIgnoreCase but I think needs a bit of study to ensure
> that this is correct for cases such as when the root directory is a UNC
> server.
>
> -Alan
More information about the nio-dev
mailing list