New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HashSet (and maybe Map?) optimizations backported to 2.12.x don't respect possiblity of custom elemHashCode
#675
Comments
Maybe this isn't a real problem because the base classes They are marked as:
|
The choices are to add a defensive check that the operands of the optimized |
Also the pre-existing implementations of The same problem for |
the optimisations for the builders (in scala/scala#8722 and scala/scala#8726) may need consideration for the |
I'm leaning towards release noting the known breakage because I believe its more a theoretical problem than something that exists in the wild. |
|
it would also affect I agree that it seems more a theoretical issue than a practical one |
This also was an existing issue in 2.12 for merge this issue dates back to 2.9! https://github.com/scala/scala/blob/2.9.x/src/library/scala/collection/immutable/HashMap.scala#L392 |
See: scala/scala#8589 (comment)
The text was updated successfully, but these errors were encountered: