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

In jdk1.2fcs-K, BreakIterator.getAvailableLocales() returns empty list

XMLWordPrintable

    • 1.2fcs
    • sparc
    • solaris_2.5, solaris_2.6
    • Verified

      JDK Version: 1.2fcs-K
      OS: Solaris, win95, winNT
      Locale: zh, C

      In jdk1.2fcs-K, getAvailableLocales() has no return value.

      Following is a program to reproduce this problem.

      import java.util.*;
      import java.text.*;

      public class CheckGetAvailableLocales {
          
          public static void main(String args[]) {
      new CheckGetAvailableLocales();
          }

          public CheckGetAvailableLocales() {
      Locale[] locales = BreakIterator.getAvailableLocales();
      String runtimeResult = "";
      for (int i = 0; i < locales.length; i ++) {
      runtimeResult = runtimeResult + locales[i].toString() + " ";
      }
      System.out.println("BreakIterator: getAvailableLocales() failed");
      System.out.println(" runtime result: " + runtimeResult);
      System.out.println(" " + Locale.getDefault().toString() + " " + "is not included");
          }
      }



      jim.hu@prc 1998-09-21

            nlindenbsunw Norbert Lindenberg (Inactive)
            jhusunw Jim Hu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: