Fix data class hashcode generation

It considers Boolean hashCode equal to 1/0 for true/false,
which is different from actual hashCode of the Boolean type.
This commit is contained in:
Abduqodiri Qurbonzoda
2023-06-12 17:40:37 +03:00
committed by Space Team
parent 36924775c8
commit fd4d4f516f
3 changed files with 4 additions and 12 deletions
@@ -13,8 +13,8 @@ data class Hash(
)
// 8 \.hashCode
// 0 INVOKESTATIC java/lang/Boolean\.hashCode \(Z\)I
// 9 \.hashCode
// 1 INVOKESTATIC java/lang/Boolean\.hashCode \(Z\)I
// 1 INVOKESTATIC java/lang/Byte\.hashCode \(B\)I
// 1 INVOKESTATIC java/lang/Character\.hashCode \(C\)I
// 1 INVOKESTATIC java/lang/Short\.hashCode \(S\)I