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

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

    XMLWordPrintable

Details

    • b04
    • generic
    • generic
    • Verified

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: