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
The hashCode for None changes across JVM invocations. This is because the hashCode method is not generated for case objects, so it uses the default java.lang.Object.hashCode implementation. case objects should have a hashCode method generated like is done for case classes.
Commit Message Bot (anonymous) said:
(extempore in r25215) Stable hashCodes for case objects.
Somehow case objects fell through the cracks and have had
default hashCode implementations, leading to new hashCodes on
each jvm run. Now we use the productPrefix, and inline it
right into the bytecode.
The hashCode for None changes across JVM invocations. This is because the hashCode method is not generated for case objects, so it uses the default java.lang.Object.hashCode implementation. case objects should have a hashCode method generated like is done for case classes.
Related: #1387
The text was updated successfully, but these errors were encountered: