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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Environment:

      All the platforms.

    • Subcomponent:
    • Introduced In Build:
      b56
    • Resolved In Build:
      b63
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                naoto Naoto Sato
                Reporter:
                yhuang Yong Huang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: