RFR: 8264400: (fs) WindowsFileStore equality depends on how the FileStore was constructed

Alan Bateman alanb at openjdk.java.net
Wed Apr 7 11:32:42 UTC 2021


On Tue, 6 Apr 2021 21:35:14 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> If we want to constrain the case insensitive comparison to fixed drives, then this might work:

Yes, although it would be good to extend this to the DRIVE_REMOTE and other cases too, but that requires being confident that it is correct (and I'm not sure we have enough information to say this yet).

An initial change for the DRIVE_FIXED case is okay. It will mean using Locale.ROOT or Locale.US. Also the hash code will need to be cached.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3279


More information about the nio-dev mailing list