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

"getISO3Country" in "Locale" returns USA instead of Missing exception.

XMLWordPrintable

    • 1.1.6
    • generic, unknown
    • solaris_2.5, solaris_2.5.1
    • Verified

        "getISO3Country" in "Locale" class suppose to throws MissingResourceExceptionreturns but it returns USA as default for all the Locales which is not available.
        To recrete the problem, execute the following code, notice no exception ..

        Locale locallocal = new Locale("BN","BD");
        String gstring=locallocal.getISO3Country();
        System.out.println("gstring - " + gstring );

              bcbeck Brian Beck (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: