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

java.util.Locale.getDispalyName does not return default two letter codes.

XMLWordPrintable

    • 1.1.6
    • other
    • generic
    • Not verified

        java.util.local.getDisplayName, getDisplyLanguage, getDisplayCountry, getDisplayVariant do not return the two letter codes when they can not find a full string. When they can not find a full string they return a null string.

        The problem appears to be that an exception is expected from matchString when it can not find the full string, the exception should then be caught and the default two letter code returned. matchString does not throw an exception.

              rgillamsunw Richard Gillam (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: