My Oracle Support Banner

Money Java Application Programming Interface/Constant - Money.ZERO Issue (Doc ID 2219682.1)

Last updated on MARCH 08, 2019

Applies to:

Oracle Public Sector Revenue Management - Version 2.5.0.0.0 and later
Information in this document applies to any platform.

Symptoms

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.

Cause

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
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.