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

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

    XMLWordPrintable

Details

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

    Backports

      Description

        "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 );

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: