mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-26 04:49:02 +08:00
fa397ddafb
* 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 |
||
---|---|---|
.. | ||
jar | ||
zip | ||
AbstractCollection.java | ||
AbstractList.java | ||
AbstractMap.java | ||
AbstractSequentialList.java | ||
AbstractSet.java | ||
ArrayList.java | ||
Arrays.java | ||
BasicMapEntry.java | ||
BitSet.java | ||
Calendar.java | ||
Collection.java | ||
Collections.java | ||
Comparator.java | ||
ConcurrentModificationException.java | ||
Date.java | ||
Dictionary.java | ||
EmptyStackException.java | ||
Enumeration.java | ||
EventListener.java | ||
EventObject.java | ||
GregorianCalendar.java | ||
HashMap.java | ||
HashSet.java | ||
Hashtable.java | ||
Iterator.java | ||
LinkedList.java | ||
List.java | ||
ListIterator.java | ||
ListResourceBundle.java | ||
Locale.java | ||
Map.java | ||
MissingResourceException.java | ||
NoSuchElementException.java | ||
Observable.java | ||
Observer.java | ||
Properties.java | ||
PropertyPermission.java | ||
PropertyResourceBundle.java | ||
Random.java | ||
ResourceBundle.java | ||
Set.java | ||
SimpleTimeZone.java | ||
SortedMap.java | ||
SortedSet.java | ||
Stack.java | ||
StringTokenizer.java | ||
Timer.java | ||
TimerTask.java | ||
TimeZone.java | ||
TooManyListenersException.java | ||
TreeMap.java | ||
TreeSet.java | ||
Vector.java | ||
WeakHashMap.java |