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

Spec clarification: j.u.Locale.getDisplayName()

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P3
    • 11
    • core-libs
    • None
    • minimal
    • Java API
    • SE

    Description

      Summary

      Clarify the Locale.getDisplayName() method description regarding the separators in parentheses.

      Problem

      Currently, it is simply a comma character in the spec, which can actually be localized into locale specific separator character.

      Solution

      Add a clarifying text.

      Specification

      Add the following sentence to the end of the method description of Locale.getDisplayName() and Locale.getDisplayName(Locale), just before the last sentence: “If the language, script, country, and variant fields are all empty, this function returns the empty string.“

      The field separator in the above parentheses, denoted as a comma character, may be localized depending on the locale. 

      Attachments

        Issue Links

          Activity

            People

              naoto Naoto Sato
              dbessono Dmitry Bessonov
              Brent Christian, Brian Burkhalter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: