Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
empire-db-2.4.0
-
None
Description
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'