ICU-7946 Locale.ROOT cannot be used for implementing com.ibm.icu.base
X-SVN-Rev: 29376
This commit is contained in:
parent
11f120a991
commit
6d0e6b9a8e
@ -2249,7 +2249,7 @@ public class Calendar implements Serializable, Cloneable, Comparable<Calendar> {
|
||||
*/
|
||||
public String getType() {
|
||||
// JDK supports Gregorian, Japanese and Buddhist
|
||||
String name = calendar.getClass().getSimpleName().toLowerCase(Locale.ROOT);
|
||||
String name = calendar.getClass().getSimpleName().toLowerCase(Locale.US);
|
||||
if (name.contains("japanese")) {
|
||||
return "japanese";
|
||||
} else if (name.contains("buddhist")) {
|
||||
|
Loading…
Reference in New Issue
Block a user