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

Improve the copying of the available set of Currencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • core-libs
    • b25
    • generic
    • generic

      j.util.Currency maintains a Set of Currencies. When returning this set, a defensive copy is made. Currently, clone() paired with an unchecked cast and a SuppressWarning annotation is used. It would be much cleaner if simply a copy constructor was used.

            jlu Justin Lu
            jlu Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: