-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
b48
-
generic
-
generic
--
import java.util.*;
import java.text.*;
public class FormatBuddhistCalendar {
public static void main(String[] args) {
Calendar cal = Calendar.getInstance(new Locale("th", "TH"));
SimpleDateFormat fmt = new SimpleDateFormat("G yyyy.MM.dd", Locale.US);
fmt.setCalendar(cal);
System.out.println(fmt.format(new Date()));
}
}
--
Output:
AD 2546.03.17
The era must be "B.E.".
###@###.### 2003-03-17
- relates to
-
JDK-6317072 REGR: 4 tests from api/java_text/DateFormat/ and api/java_text/SimpleDateFormat/ fails with -esa key
-
- Closed
-
-
JDK-6253991 [Fmt-Da] SimpleDateFormat has built-in assumptions on year formatting and parsing
-
- Resolved
-
-
JDK-6301287 Pluggable locale tests fail
-
- Resolved
-
-
JDK-6302990 Backout test/java/text/Format/DateFormat/Bug4322313.java change
-
- Resolved
-
-
JDK-4833267 (cal) BuddhistCalendar problems
-
- Closed
-
-
JDK-4609228 (cal) RFE: Provide additional local calendars in Java
-
- Resolved
-
-
JDK-7073852 Support multiple scripts for digits and decimal symbols per locale
-
- Closed
-