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

java/time/nontestng/java/time/zone/CustomZoneNameTest.java fails if defaultLocale and defaultFormatLocale are different

    XMLWordPrintable

Details

    • b10

    Backports

      Description

        spotted on my dev (Windows) machine; the test fails with:

        testFormatting. Pattern: yyyy-MM-dd HH:mm:ss.SSS v, expected: 2019-12-06 22:06:12.372 Custom Time, formatted: 2019-12-06 22:06:12.372 Custom/Timezone

        CustomTimeZoneNameProvider#getAvailableLocales uses Locale.getDefault() which returns en_US. DateTimeFormatterBuilder#toFormatter uses Locale.getDefault(Locale.Category.FORMAT) which returns pl_PL.

        Attachments

          Issue Links

            Activity

              People

                djelinski Daniel Jelinski
                djelinski Daniel Jelinski
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: