RFR: 8310813: Simplify and modernize equals, hashCode, and compareTo for BigInteger [v2]

Pavel Rappo prappo at openjdk.org
Mon Jul 10 18:32:25 UTC 2023


On Mon, 10 Jul 2023 17:07:28 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> I would be in favor of keeping the current hash behavior for now, even if it is updated in subsequent work. Users have had more than two decades to become, accidentally, reliant on the hash algorithms.

Fair enough; then I suggest we introduce the required utility method (i.e. hashOfRange) in ArraysSupport first.

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

PR Comment: https://git.openjdk.org/jdk/pull/14630#issuecomment-1629486588


More information about the core-libs-dev mailing list