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

java/text/Format/NumberFormat/CurrencyFormat.java fails for hr_HR

XMLWordPrintable

    • b04
    • generic
    • generic
    • Verified

        The test java/text/Format/NumberFormat/CurrencyFormat.java fails since start of 2023 :
        java.lang.RuntimeException: Wrong currency symbol for locale hr_HR, expected: Kn, got: EUR
               at CurrencyFormat.testSymbols(CurrencyFormat.java:159)
               at CurrencyFormat.main(CurrencyFormat.java:51)

        Most likely this is because of the switch of Croatia to Euro.

        Croatia joined the Euro Currency with effect of 1.1.2023 as reflected in JDK-8296239.
        The test only checks a single currency, the one valid at the date at which the test runs.
        Therefore the test broke just when the years changed.

              ostuart Owen Stuart
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

                Created:
                Updated:
                Resolved: