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

Performance improvement for Currency.isPastCutoverDate(String)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • core-libs
    • b09
    • generic
    • generic

      While working on a separate Currency issue, noticed that the implementation of this method has room for improvement.

      It is responsible for checking cut-over dates supplied via java.util.currency.data properties file.

      It uses legacy SimpleDateFormat (and creates a new one for every check). Replacing with modern java.time alternative is significantly faster.

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

              Created:
              Updated:
              Resolved: