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

StackOverflowError calling Locale.getDisplayName/Locale.getDisplayVariant

XMLWordPrintable

    • generic
    • generic


      masayoshi.okutsu@Eng 1996-12-24
      The following program causes StackOverflowError in ja locale on Solaris
      and on Japanese Win95. This may be a ResourceBundle problem.

      import java.util.*;

      public class Disp1{
          public static void main(String[] args){
              Locale inLocale = Locale.getDefault();
              System.out.println(inLocale.getDisplayVariant(inLocale));
          }
      }

      java.lang.StackOverflowError
          at java.util.Hashtable.get(Hashtable.java)
          at java.text.resources.LocaleData.handleGetObject(LocaleData.java)
          at java.util.ResourceBundle.getObject(ResourceBundle.java)
          at java.util.ResourceBundle.getObject(ResourceBundle.java)
          (iterates long long)
          at java.util.ResourceBundle.getObject(ResourceBundle.java)
          at java.util.ResourceBundle.getObject(ResourceBundle.java)
          at java.util.Locale.getDisplayVariant(Locale.java)
          at Disp1.main(Disp1.java:6)

            bcbeck Brian Beck (Inactive)
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: