RFR: 8322292: Rearrange comparison of fields in Record.equals()

Sergey Tsypanov stsypanov at openjdk.org
Tue Dec 19 09:44:50 UTC 2023


On Tue, 19 Dec 2023 06:07:31 GMT, Hannes Greule <hgreule at openjdk.org> wrote:

> Arrays are compared by reference

Isn't `Arrays.equals()` used under the hood?

> You are sorting the array passed to the bootstrap method

Good point, fixed.

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

PR Comment: https://git.openjdk.org/jdk/pull/17143#issuecomment-1862429275


More information about the core-libs-dev mailing list