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

JRE adapter: timezone name of en_US is changed when extension directory is added

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • All the platforms.

    • b56
    • b63
    • Verified

      This problem happens in all the platforms.

      I run my test program for TimeZoneName provider. Attached is the test program (TimeZoneNameTest.java).

      When Djava.locale.providers=JRE, and java.ext.dirs is not specified, the output is the expected: "Pacific Standard Time".

      When Djava.locale.providers=JRE, and java.ext.dirs is specified (SPI providers is there), the output is different: "GMT - 08:00".

      Since the provider is specified as JRE only, the output should be the same, even SPI extension directory is provided. The return value is also a little strange. It's "GMT - 08:00".

      In promotion build b56, this problem happens in all the locales. In latest JPRT build (build 1.8.0-internal-201210032212.nsato.tl-b00), this problem only happens in en_US. For other locales, when provider is specified as JRE only, the output is the same when SPI extenion directory is specified or not.

      Attached is the screenshot of the output. The jar file of the SPI provider implementation and its source files are also provided.

            naoto Naoto Sato
            yhuang Yong Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: