On Fri, 16 Oct 2026 19:43:46 GMT, Fairoz Matte <[email protected]> wrote:

>> Thanks @AlanBateman and @kevinjwalls for looking into this.
>
> Hi Alan, I prefer to keep the value as it is, -1 instead of 0. Do let me 
> know, if that is fine!

History reveals that the hashCode algorithm was imported from Map:

     // this is the equivalent of Map.hashCode()

Possibly -1 was a less likely value (an empty `HashMap().hashCode()` produces 0)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33368#discussion_r4315138600

Reply via email to