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

Improve cutover time selection when building available currencies set

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Withdrawn
    • Icon: P4 P4
    • 25
    • core-libs
    • None
    • behavioral
    • low
    • Hide
      There is a behavioral change. If an application reloads the Currency class and rebuilds the available set of Currencies, any cut-over date comparisons will be done against a single time now. However, such a change should not cause any incompatibilities. Currencies that have already passed their date will continue to use use their new Currency, and any currencies that have not yet passed their date will fall under the new behavior when the cut-over date occurs.
      Show
      There is a behavioral change. If an application reloads the Currency class and rebuilds the available set of Currencies, any cut-over date comparisons will be done against a single time now. However, such a change should not cause any incompatibilities. Currencies that have already passed their date will continue to use use their new Currency, and any currencies that have not yet passed their date will fall under the new behavior when the cut-over date occurs.
    • Java API
    • SE

      Summary

      In java.util.Currency, use a single time for cut-over date comparisons, when building the set of available currencies.

      Problem

      java.util.Currency builds a set of the available currencies. While building the set, currencies with a cut-over date are measured against a new capture of the current System time. This leads to different times being used for each currency with a cut-over date, instead of a single uniform time. Additionally, the variance (while in the milliseconds), between each time measurement is dependent on an implementation's performance of the method.

      Solution

      When building the set of available currencies, use a single time for all cut-over date comparisons.

      Specification

      n/a

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

              Created:
              Updated:
              Resolved: