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
I've found following issue with bigDecimalOf code:
@Test
fun typeCastIssue() {
val zero = BigDecimal.ZERO
println(zero == Decimal.NEGATIVE_ZERO) // true
bigDecimalOf(zero) // throw exception
}
Seems like the when condition here is an equivalence test, not asserting same object. So if num = BigDecimal.ZERO, then it enters this branch and fail type cast.
Could you take a look? Thanks!
The text was updated successfully, but these errors were encountered:
Hi there,
I've found following issue with
bigDecimalOf
code:Seems like the when condition here is an equivalence test, not asserting same object. So if
num = BigDecimal.ZERO
, then it enters this branch and fail type cast.Could you take a look? Thanks!
The text was updated successfully, but these errors were encountered: