Money Java Application Programming Interface/Constant - Money.ZERO Issue
(Doc ID 2219682.1)
Last updated on AUGUST 24, 2020
Applies to:Oracle Public Sector Revenue Management - Version 184.108.40.206.0 and later
Information in this document applies to any platform.
When customer uses public static final Money ZERO = new Money(BigDecimal.ZERO, null); from com.splwg.base.api.datatypes.Money class the behavior is different than in 2.4.1. In 2.4.1 the returned value is 0.00 but in 2.5 the returned value is 0 which causes all the places we used the Money.ZERO constant for comparison with a money object to fail.
The returned value should be 0.00 like in 2.4.
Customer's custom code is referencing that class.
Customer uses this constant in thousands of places and cannot afford to change their code.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document