Re: RFR: 8262927: Explicitly state fields examined for BigDecimal.hashCode

2021-03-03 Thread Brian Burkhalter
On Wed, 3 Mar 2021 22:20:45 GMT, Joe Darcy 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 equa

RFR: 8262927: Explicitly state fields examined for BigDecimal.hashCode

2021-03-03 Thread Joe Darcy
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