* java/util/Calendar.java (set): Never recompute fields here. They will already be set if someone set time explicitly, and it can cause problems to do so. Don't invalidate AM_PM setting if HOUR is set. * java/util/GregorianCalendar.java (computeTime): Don't ignore an HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is sane. * java/text/SimpleDateFormat.java (defaultCentury): New field. (readObject): Call set2DigitYearStart if appropriate so that defaultCentury is calculated. (SimpleDateFormat): Don't bother clearing calendar here. Call computeCenturyStart(). (set2DigitYearStart): Calculate and set defaultCentury. (format): Don't clone the calendar. Use "calendar" not "theCalendar" everywhere. (parse): Likewise. If the pattern is "y" or "yy" and it found exactly 2 numeric digits, use the 80-20 heuristic to parse the value into a default century based on defaultCenturyStart. (computeCenturyStart): Rewritten. Call set2DigitYearStart(). From-SVN: r44395
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| BreakIterator.java | Loading commit data... | |
| CharacterIterator.java | Loading commit data... | |
| ChoiceFormat.java | Loading commit data... | |
| CollationElementIterator.java | Loading commit data... | |
| CollationKey.java | Loading commit data... | |
| Collator.java | Loading commit data... | |
| DateFormat.java | Loading commit data... | |
| DateFormatSymbols.java | Loading commit data... | |
| DecimalFormat.java | Loading commit data... | |
| DecimalFormatSymbols.java | Loading commit data... | |
| FieldPosition.java | Loading commit data... | |
| Format.java | Loading commit data... | |
| MessageFormat.java | Loading commit data... | |
| NumberFormat.java | Loading commit data... | |
| ParseException.java | Loading commit data... | |
| ParsePosition.java | Loading commit data... | |
| RuleBasedCollator.java | Loading commit data... | |
| SimpleDateFormat.java | Loading commit data... | |
| StringCharacterIterator.java | Loading commit data... | |
| natCollator.cc | Loading commit data... |