Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8190196

java.util.Currency has no equals() method

XMLWordPrintable

      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.

            nishjain Nishit Jain
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: