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

2025-04-04 Thread Zihao Lin
On Thu, 20 Mar 2025 11:59:58 GMT, Zihao Lin 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. That’s helpful to know, Let's solve this issue after creating the CSR. - PR Comment: https://git

Re: RFR: 8352171: Arrays.hashCode for sub-range of byte array API addition [v2]

2025-03-29 Thread Zihao Lin
> Add the java.util.Arrays.hashCode(byte[], int start, int end). > > Hi team, I am new here, please give me some guidance. Thank you. Zihao Lin has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the

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

2025-03-28 Thread Roger Riggs
On Thu, 20 Mar 2025 21:50:59 GMT, Chen Liang 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. > > src/java.base/share/classes/java/util/Arrays.java line 4454: > >> 4452: */ >> 4453: public st

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

2025-03-28 Thread Chen Liang
On Thu, 20 Mar 2025 11:59:58 GMT, Zihao Lin 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. src/java.base/share/classes/java/util/Arrays.java line 4454: > 4452: */ > 4453: public static int ha

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

2025-03-24 Thread Roger Riggs
On Thu, 20 Mar 2025 12:25:31 GMT, Hannes Greule 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 byt

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

2025-03-22 Thread Hannes Greule
On Thu, 20 Mar 2025 11:59:58 GMT, Zihao Lin 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