(SimpleDateFormat)chineseCalendar.getDateTimeFormat(DateFormat.LONG, DateFormat.LONG, Locale.CHINA );
DateFormatSymbols dfs = new ChineseDateFormatSymbols( chineseCalendar, Locale.CHINA );
longChineseDateFormat.setDateFormatSymbols( dfs );
// This next line throws the exception
try {
longChineseDateFormat.toLocalizedPattern();
}
catch (Exception e) {
errln("could not localized pattern: " + e.getMessage());
}
}