ICU-5466 Fix ChineseCalendar#toString() crash problem

X-SVN-Rev: 22377
This commit is contained in:
Yoshito Umaoka 2007-08-14 17:38:23 +00:00
parent 7951431096
commit 6e071a5cc9

View file

@ -3881,7 +3881,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable {
buffer.append(",minimalDaysInFirstWeek=");
buffer.append(minimalDaysInFirstWeek);
for (int i=0; i<fields.length; ++i) {
buffer.append(',').append(FIELD_NAME[i]).append('=');
buffer.append(',').append(fieldName(i)).append('=');
buffer.append(isSet(i) ? String.valueOf(fields[i]) : "?");
}
buffer.append(']');