# Wrapped byte array hash code bug

**URL:** <https://contributors.scala-lang.org/t/wrapped-byte-array-hash-code-bug/2716>\
**Category:** Scala Platform\
**Created:** [January 5, 2019, 6:13am UTC](https://contributors.scala-lang.org/t/wrapped-byte-array-hash-code-bug/2716 "2019-01-05T06:13:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smishmash](https://contributors.scala-lang.org/letter_avatar_proxy/v4/letter/s/f04885/32.png) [@smishmash](https://contributors.scala-lang.org/u/smishmash)\
**Post date:** [January 5, 2019, 6:13am UTC](https://contributors.scala-lang.org/t/wrapped-byte-array-hash-code-bug/2716/1 "2019-01-05T06:13:16Z")

</div>

Hello,

I have filed this bug a few days ago: [https://github.com/scala/bug/issues/11330](https://github.com/scala/bug/issues/11330)

This is similar to one that’s been fixed for 2.13: [https://github.com/scala/bug/issues/10690](https://github.com/scala/bug/issues/10690)

I’m considering taking a crack at this problem myself. It’s the first time I’m touching the scala internal library code, so guidance and/or suggestions would be useful. If I do put together a fix, what’s the likelihood of it being released in a future 2.12.x release? Is there a next release scheduled?

Thanks,

Sunil

---

<div class="post-metadata">

**Author:** ![smarter](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/smarter/32/92_2.png) [@smarter](https://contributors.scala-lang.org/u/smarter)\
**Post date:** [January 5, 2019, 3:42pm UTC](https://contributors.scala-lang.org/t/wrapped-byte-array-hash-code-bug/2716/2 "2019-01-05T15:42:23Z")

</div>

> [@smishmash](#):
>
> If I do put together a fix, what’s the likelihood of it being released in a future 2.12.x release?

Assuming it does not break the [community build](https://github.com/scala/community-builds) (which someone will run for you before merging the PR), I would say pretty high, since breaking the equals/hashCode contract is a pretty serious bug.

> [@smishmash](#):
>
> Is there a next release scheduled?

Yes: [2.12.9 Milestone · GitHub](https://github.com/scala/scala/milestone/77)

---

<div class="post-metadata">

**Author:** ![smishmash](https://contributors.scala-lang.org/letter_avatar_proxy/v4/letter/s/f04885/32.png) [@smishmash](https://contributors.scala-lang.org/u/smishmash)\
**Post date:** [January 6, 2019, 10:05pm UTC](https://contributors.scala-lang.org/t/wrapped-byte-array-hash-code-bug/2716/3 "2019-01-06T22:05:29Z")

</div>

OK, I have ported the fix for issue 10690 to 11330:

> <https://github.com/scala/scala/pull/7607#issue-242509725>

I have a build failure here I don’t understand. Will try rebuilding, though I feel it is ready for review. How do I get this on milestone 77?

Sunil
