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

java.util.Locale doc is unclear about toString() method

XMLWordPrintable

    • 1.2beta4
    • sparc
    • solaris_2.5
    • Verified



      Name: avC70361 Date: 03/02/98



        The java.util.Locale doc is unclear about toString() method. It states
      "Getter for the programmatic name of the entire locale, with the language,
      country and variant separated by underbars. Language is always lower case, and
      country is always uppcer case. If a field is missing, at most one underbar will
      occur. Example: "en", "de_DE", "en_US_WIN", "de_POSIX", "fr_MAC"". But it is not
      evident what should be returned when the language field is missing. Moreover,
      documentation for java.util.ResourceBundle and Locale implementation seem to
      assume that when the country or the variant field is not empty then the language
      and, accordingly, the language and the country fields are not empty also. But
      neither ResourceBundle nor Locale docs state it.

      ======================================================================

            rgillamsunw Richard Gillam (Inactive)
            ovlasov Oleksandr Vlasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: