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

Locale accepts construction with an empty language string

    XMLWordPrintable

Details

    Description

      Locale has two constructors:
      Locale (String language, String country);
      Locale (String language, String country, String variant);

      Empty strings are accepted for any of these parameters. A locale without a language identifier is unusable and invalid in Java, but our constructors allow it without complaint.

      Attachments

        Issue Links

          Activity

            People

              rgillamsunw Richard Gillam (Inactive)
              joconnersunw John Oconner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: