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

Hannes Greule hgreule at openjdk.org
Thu Mar 20 12:28:21 UTC 2025


On Thu, 20 Mar 2025 11:59:58 GMT, Zihao Lin <duke at openjdk.org> wrote:

> Add the java.util.Arrays.hashCode(byte[], int start, int end).
> 
> Hi team, I am new here, please give me some guidance. Thank you.

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).

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

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


More information about the core-libs-dev mailing list