empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Weidele (JIRA)" <empire-db-...@incubator.apache.org>
Subject [jira] [Created] (EMPIREDB-171) ObjectUtils.compareEquals fails on BigDecimal
Date Tue, 02 Oct 2012 09:03:07 GMT
Daniel Weidele created EMPIREDB-171:

             Summary: ObjectUtils.compareEquals fails on BigDecimal
                 Key: EMPIREDB-171
                 URL: https://issues.apache.org/jira/browse/EMPIREDB-171
             Project: Empire-DB
          Issue Type: Bug
          Components: Core
    Affects Versions: empire-db-2.4.0
            Reporter: Daniel Weidele
            Priority: Critical

When comparing a BigDecimal with internal value e.g. '50' to another BigDecimal with internal
value '50.00' ObjectUtils.compareEquals returns false as it internally forwards to the BigDecimal.equals
method, which also relies on internal BigDecimal properties such as scale, etc.

ObjectUtils.compareEquals should return true when comparing e.g. '50' to '50.00'

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message