jdk/test/java/util/Locale/LocaleProviders.java
changeset 14336 4a3418a2c07f
parent 14185 916ec0a4d039
child 17169 5e5039c3181d
--- a/jdk/test/java/util/Locale/LocaleProviders.java	Thu Nov 01 10:33:32 2012 +0100
+++ b/jdk/test/java/util/Locale/LocaleProviders.java	Thu Nov 01 13:28:47 2012 -0700
@@ -51,6 +51,10 @@
                 tzNameTest(args[1]);
                 break;
 
+            case "bug8001440Test":
+                bug8001440Test();
+                break;
+
             default:
                 throw new RuntimeException("Test method '"+methodName+"' not found.");
         }
@@ -93,4 +97,10 @@
             throw new RuntimeException("JRE's localized time zone name for "+id+" could not be retrieved. Returned name was: "+tzName);
         }
     }
+
+    static void bug8001440Test() {
+        Locale locale = Locale.forLanguageTag("th-TH-u-nu-hoge");
+        NumberFormat nf = NumberFormat.getInstance(locale);
+        String nu = nf.format(1234560);
+    }
 }