JDK-8321429 breaks FileKey.hashCode()

Brian Burkhalter brian.burkhalter at oracle.com
Tue Jan 16 21:29:24 UTC 2024


A fix proposal has been opened: https://github.com/openjdk/jdk/pull/17452.

Brian

On Jan 14, 2024, at 11:41 PM, Alan Bateman <Alan.Bateman at oracle.com<mailto:Alan.Bateman at oracle.com>> wrote:

On 14/01/2024 23:54, Simon Nash wrote:
The change for JDK-8321429 breaks the hashCode() method of sun.nio.ch.FileKey.
Well spotted, it means a poor hashCode when doing a lot of file locking on Windows.  I've created JDK-8323710 [1] to track it.

-Alan

[1] https://bugs.openjdk.org/browse/JDK-8323710

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20240116/73c6bc4e/attachment-0001.htm>


More information about the nio-dev mailing list