You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by "Rainer Döbele (JIRA)" <em...@incubator.apache.org> on 2012/10/04 17:19:47 UTC
[jira] [Updated] (EMPIREDB-171) ObjectUtils.compareEquals fails on
BigDecimal
[ https://issues.apache.org/jira/browse/EMPIREDB-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rainer Döbele updated EMPIREDB-171:
-----------------------------------
Fix Version/s: empire-db-2.4.1
> 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
> Fix For: empire-db-2.4.1
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Observed:
> 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.
> Expected:
> 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