--- old/test/java/util/Locale/LocaleProviders.java Tue Oct 30 14:32:16 2012 +++ new/test/java/util/Locale/LocaleProviders.java Tue Oct 30 14:32:15 2012 @@ -51,6 +51,10 @@ tzNameTest(args[1]); break; + case "bug8001205Test": + bug8001205Test(); + break; + default: throw new RuntimeException("Test method '"+methodName+"' not found."); } @@ -93,4 +97,13 @@ throw new RuntimeException("JRE's localized time zone name for "+id+" could not be retrieved. Returned name was: "+tzName); } } + + static void bug8001205Test() { + Calendar cal = Calendar.getInstance(); + cal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); + String sunday = cal.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.SHORT_STANDALONE, Locale.CHINA); + if (sunday == null) { + throw new RuntimeException("Calendar.getDisplayName(DAY_OF_WEEK/SHORT_STANDALONE) returned null."); + } + } }