You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We cannot implement hashCode for java.lang.{Float, Double} the way Java specifies, because these boxes equal the integral-value boxes if they itself contain the corresponding integer value.
Therefore, we must have:
newDouble(4.0).hashCode ==newInteger(4).hashCode
Currently we use _.toInt as hashCode but that arguably gives very bad distribution. We should consider using the implementations in BoxesRunTime.