Money Java API/Constant - Money.ZERO Issue

(Doc ID 2219682.1)

Last updated on JANUARY 03, 2017

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

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms