--- a/jdk/src/share/classes/java/text/SimpleDateFormat.java Mon Aug 23 14:14:52 2010 +0900
+++ b/jdk/src/share/classes/java/text/SimpleDateFormat.java Tue Aug 31 11:27:10 2010 -0700
@@ -474,7 +474,7 @@
* class.
*/
public SimpleDateFormat() {
- this(SHORT, SHORT, Locale.getDefault());
+ this(SHORT, SHORT, Locale.getDefault(Locale.Category.FORMAT));
}
/**
@@ -490,7 +490,7 @@
*/
public SimpleDateFormat(String pattern)
{
- this(pattern, Locale.getDefault());
+ this(pattern, Locale.getDefault(Locale.Category.FORMAT));
}
/**
@@ -535,7 +535,7 @@
this.pattern = pattern;
this.formatData = (DateFormatSymbols) formatSymbols.clone();
- this.locale = Locale.getDefault();
+ this.locale = Locale.getDefault(Locale.Category.FORMAT);
initializeCalendar(this.locale);
initialize(this.locale);
useDateFormatSymbols = true;