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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2beta4
    • CPU:
      sparc
    • OS:
      solaris_2.5
    • Verification:
      Verified

      Description



      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.

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: