On Wed, 3 Mar 2021 22:20:45 GMT, Joe Darcy <da...@openjdk.org> wrote:
> The class BigDecimal can be and sometimes is subclassed. The spec of > BigDecimal.hashCode is improved slightly by explicitly stating it is a > function of the unscaled value and the scale of the BigDecimal, the same > fields examined by equals. > > It is a conscious choice to *not* explicitly state what the exact hash > function is. > > As the behavior of hashCode is mostly implied from equals, I don't think a > CSR is necessary in this case. Looks fine. ------------- Marked as reviewed by bpb (Reviewer). PR: https://git.openjdk.java.net/jdk/pull/2817