RFR: 8352171: Arrays.hashCode for sub-range of byte array API addition

Roger Riggs rriggs at openjdk.org
Mon Mar 24 20:05:07 UTC 2025


On Thu, 20 Mar 2025 12:25:31 GMT, Hannes Greule <hgreule at openjdk.org> wrote:

> To me, it seems odd to add only the `byte[]` variant but not other primitive type arrays (as with the `equals` methods). You also most likely need a [CSR](https://wiki.openjdk.org/display/csr).

The only use case presented was for byte array subranges. While it seems obvious to repeat the pattern for the other types, they might never get used and would just create more surface area to maintain. The Arrays class is already huge.

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

PR Comment: https://git.openjdk.org/jdk/pull/24128#issuecomment-2749261229


More information about the core-libs-dev mailing list