You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (JIRA)" <ji...@apache.org> on 2016/05/25 13:27:13 UTC

[jira] [Created] (IGNITE-3196) Marshaling works wrong for the BigDecimals that have negative scale

Igor Sapego created IGNITE-3196:
-----------------------------------

             Summary: Marshaling works wrong for the BigDecimals that have negative scale
                 Key: IGNITE-3196
                 URL: https://issues.apache.org/jira/browse/IGNITE-3196
             Project: Ignite
          Issue Type: Bug
          Components: binary
    Affects Versions: 1.6
            Reporter: Igor Sapego
             Fix For: 1.7


Current marshalling procedure of the {{BigDecimal}} assumes that the scale of the {{BigDecimal}} value is always more than or equal to zero. However, scale [can be negative|https://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html#scale()].

This leads to invalid results if we try to marshal-unmarshal {{BigDecimal}} that has a negative scale.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)