-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
9
FULL PRODUCT VERSION :
ADDITIONAL OS VERSION INFORMATION :
Windows 10
A DESCRIPTION OF THE PROBLEM :
Java.Util.Currency has no equals() method which leads to problems if somebody compares the reference instead of the currencyCode.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Implement Currency.equals() which compares
private final String currencyCode;
transient private final int defaultFractionDigits;
transient private final int numericCode;
REPRODUCIBILITY :
This bug can be reproduced always.
ADDITIONAL OS VERSION INFORMATION :
Windows 10
A DESCRIPTION OF THE PROBLEM :
Java.Util.Currency has no equals() method which leads to problems if somebody compares the reference instead of the currencyCode.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Implement Currency.equals() which compares
private final String currencyCode;
transient private final int defaultFractionDigits;
transient private final int numericCode;
REPRODUCIBILITY :
This bug can be reproduced always.
- relates to
-
JDK-8190904 Incorrect currency instance returned by java.util.Currency.getInstance()
- Closed