summaryrefslogtreecommitdiffstats
path: root/libjava/java/util
Commit message (Collapse)AuthorAgeFilesLines
...
* * java/util/Date.java: Re-merged with Classpath.tromey2001-07-311-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44497 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/GregorianCalendar.java (GregorianCalendar): Callbryce2001-07-301-3/+1
| | | | | | | setTimeInMillis() to set the default/current time. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44467 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Calendar.java (set): Never recompute fields here. Theybryce2001-07-262-8/+11
| | | | | | | | | | | | | | | | | | | | | | | 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(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44395 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/LinkedList.java (clone): Clear the copy list with clear(),bryce2001-07-171-8/+2
| | | | | | | not by setting its size field. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44057 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/3144:tromey2001-06-141-143/+410
| | | | | | | * java/util/Date.java: Merged with Classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43374 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/GregorianCalendar.java (computeTime): Only calltromey2001-05-151-1/+1
| | | | | | | getTimeZone() once. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42121 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-10 Tom Tromey <tromey@redhat.com>tromey2001-05-103-357/+1041
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/util/GregorianCalendar.java: Imported from Classpath. * gnu/java/locale/LocaleInformation_nl.java: New file from Classpath. * gnu/java/locale/LocaleInformation_en.java: Likewise. * gnu/java/locale/LocaleInformation_de.java: Likewise. * gnu/java/locale/LocaleInformation.java: Likewise. * natGregorianCalendar.cc: Removed. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Removed natGregorianCalendar.cc. 2001-05-10 Tom Tromey <tromey@redhat.com> * java/text/SimpleDateFormat.java (computeCenturyStart): New method. (defaultCenturyStart): Use it. (readObject): Likewise. (SimpleDateFormat): Clear the calendar. Set the grouping on the number format. (parse): Copy the calendar before modifying it. Correctly handle the time zone. * java/util/Calendar.java (clear): Set field value(s) to 0. 2001-05-10 Jeff Sturm <jsturm@one-point.com> * Calendar.java (get): Clear areFieldsSet if requested field is not set. (set): Unset fields that depend on new value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41942 138bc75d-0d04-0410-961f-82ee72b054a4
* Forgot this file on last commit.bryce2001-04-251-3/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41544 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.warrenl2001-04-201-2/+44
| | | | | | | | | | | | | | | | * java/text/SimpleDateFormat.java (indexInArray): Removed private method. (processYear): Removed private method. (parseLenient): Removed private method. (parseLeadingZeros): Removed private method. (parseStrict): Removed private method. (expect): Added new private method. (parse): Reverted to pre-Classpath merge version with minor fixes. * java/util/natGregorianCalendar.cc (computeTime): Handle strict calendars. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41456 138bc75d-0d04-0410-961f-82ee72b054a4
* * DeflaterOutputStream.java (deflate): Loop while def.needsInput.bothner2001-04-012-51/+95
| | | | | | | | | | | | | | | | | (finish): def.deflate needs to be called in a loop. (inbuf, inbufLength): New private fields. (write(int)): Use inbuf. (write(byte[],int,int): Check if pending output in inbuf. * ZipOutputStream.java: Don't use Deflater if stored. Use a Checksum object directly, not via a CheckedOutputStream. (uncompressed_size): New field, (closeEntry): Only write data_directory if needed. (write): If STORED, write directly. Always update crc, and uncompressed_size. (write_entry): Fix lots of protocol erors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40988 138bc75d-0d04-0410-961f-82ee72b054a4
* * exception.cc (java_eh_info): Make value type jthrowable.rth2001-03-262-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (_Jv_type_matcher): Remove now unneeded cast. (_Jv_Throw): Make argument type jthrowable. Munge name for SJLJ_EXCEPTIONS here ... * gcj/cni.h: ... not here. (JvThrow): Remove. * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations. * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc, prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc, gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc, gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc, gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc, java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc, java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc, java/lang/natClass.cc, java/lang/natClassLoader.cc, java/lang/natDouble.cc, java/lang/natObject.cc, java/lang/natPosixProcess.cc, java/lang/natRuntime.cc, java/lang/natString.cc, java/lang/natSystem.cc, java/lang/natThread.cc, java/lang/reflect/natArray.cc, java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc, java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc, java/util/zip/natInflater.cc: Use throw, not JvThrow or _Jv_Throw. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40838 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>bryce2001-03-242-3/+7
| | | | | | | | | * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity paramater, bump it to 1. * java/util/Hashtable.java (Hashtable): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40812 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TimeZone.java: Sync up with Classpath. Includes newwarrenl2001-03-201-97/+103
| | | | | | | and corrected SimpleTimeZone's for the timezones hash table. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40650 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/ArrayList.java: Remove RCS keywords from commentsmark2001-03-1912-533/+785
| | | | | | | | | | | | | | | | | | | * java/util/BasicMapEntry.java: idem * java/util/Dictionary.java: idem * java/util/HashSet.java: idem * java/util/EventObject.java: reindent * java/util/Properties.java: idem * java/util/SortedMap.java: idem * java/util/Enumeration.java: Merge with Classpath * java/util/EventListener.java: idem * java/util/Observable.java: idem * java/util/Observer.java: idem * java/util/Stack.java: idem git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40639 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>bryce2001-03-062-11/+6
| | | | | | | | | | | | | | | * java/util/TreeSet.java (writeObject): Use a for-loop instead of Iterator.hasNext(). 2001-03-05 Jochen Hoenicke <jochen@gnu.org> * java/util/TreeMap.java (writeObject): Use defaultWriteObject() instead of the new JDK1.2 API. This is simpler and makes back-porting the classes to JDK1.1 trivial. (readObject): likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40252 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR java/2040:bryce2001-02-222-20/+15
| | | | | | | | | * java/util/HashMap.java (HashMap): Don't throw exception for loadFactor > 1. Add exception messages. * java/util/Hashtable.java (Hashtable): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39969 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TimerTask.java: New version from Classpath.mark2001-02-171-64/+67
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39801 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/HashSet.java (clone): Made subclass safe, usebryce2001-02-161-3/+10
| | | | | | | super.clone(), not new. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39746 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TreeMap.java (nil): Made non-final.bryce2001-02-161-2/+4
| | | | | | | (clone): Create new nil node for copy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39736 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TreeSet.java (clone): Made subclass safe, usebryce2001-02-162-6/+22
| | | | | | | | super.clone(), not new. * java/util/TreeMap.java (clone): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39734 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/AbstractSequentialList.java: Synchronize with Classpath.bryce2001-02-158-126/+576
| | | | | | | | | | | | | * java/util/Collection.java: Likewise. * java/util/Comparator.java: Likewise. * java/util/Dictionary.java: Likewise. * java/util/Iterator.java: Likewise. * java/util/ListIterator.java: Likewise. * java/util/Map.java: Likewise. * java/util/Set.java: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39708 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/HashSet.java (clone): Remove try/catch.bryce2001-02-151-10/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39707 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TreeSet.java (clone): Call TreeMap.clone(), notbryce2001-02-152-19/+14
| | | | | | | | | Object.clone(). * java/util/Collections.java (ReverseComparator): New static class. (reverseOrder): Return static instance of ReverseComparator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39705 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClass.cc (getSignature): Don't try to dereferencebryce2001-02-141-14/+11
| | | | | | | | | | | | | | | param_types if it is null. Instead, take this to mean "no parameters". * java/lang/TreeMap.java (TreeIterator.next): Throw NoSuchElementException in preference to ConcurrentModificationException. (TreeIterator.remove): Throw IllegalStateException in preference to ConcurrentModificationException. (SubMap.firstKey): Do a better check for empty SubMap, and if it is, throw a NoSuchElementException. (SubMap.lastKey): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39658 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TreeMap.java: New file.bryce2001-02-145-16/+1756
| | | | | | | | | | | | | | | | * java/util/TreeSet.java: New file. * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap. * Makefile.in: Rebuilt. * java/util/HashSet.java (clone): Use constructor instead of calling clone on itself. * java/util/SortedSet.java: Sync with classpath. * java/util/HashMap.java (hash): Use if statement instead of ternary, for clarity. Resolves PR libgcj/1758. Resolves PR java/1684. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39657 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Timer.java: New version from Classpath.tromey2001-02-091-429/+492
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39573 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Arrays.java: Removed "cmp" methods.bryce2001-02-071-88/+53
| | | | | | | | | | | | | (qsort): Don't use "cmp". (med3): Likewise. 2001-02-07 Mark Benvenuto <mcb54@columbia.edu> * java/util/Arrays.java (qsort): Handle N value of 7 with insertion sort. Fix for PR java/1895. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39514 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/1411:warrenl2001-01-093-120/+52
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: Removed java/util/natTimeZone.cc. * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added missing localized timezone names. * java/lang/System.java (getDefaultTimeZoneId): New private method. * java/lang/natSystem.cc (getSystemTimeZone): New private method. (init_properties): Set user.timezone property. * java/text/DateFormatSymbols.java (zoneStringsDefault): Added default timezone names; removed non-standard ones. Use standard ID names per JCL. * java/util/Date.java (toGMTString): Removed zoneGMT variable. (UTC): Ditto. * java/util/TimeZone.java: Add standard ID names per JCL; removed non-standard ones. (getDefaultTimeZoneId): Removed. (zoneGMT): Removed. (getDefaultTimeZoneId): Removed. * java/util/natTimeZone.cc: Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38816 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/1358:warrenl2000-12-284-15/+14
| | | | | | | | | | | | | | | | | * java/lang/System.java: Update Copyright date properly. * java/util/Calendar.java: Fix typo in comment. (set): Set 24-hour clock hour instead of 12-hour clock hour. * java/util/GregorianCalendar.java (GregorianCalendar): Properly initialize times. Spec says to set H:M:S values to zero only if a date is given. * java/util/TimeZone.java (getDefaultDisplayName): Casts to char needed for evaluating numbers '0' to '9' in printouts of GMT offsets. * java/util/natGregorianCalendar.cc (computeTime): Properly handle timezones and GMT offsets, being careful to account for units of milliseconds vs. seconds. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38508 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/Deflater.java (update, init): Now private.tromey2000-12-211-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38420 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/BasicMapEntry.java: Re-added.bryce2000-12-213-85/+136
| | | | | | | | | | | | | * java/util/HashMap.java (Entry): Extend BasicMapEntry. (putAll): Test for BasicMapEntry. * java/util/Hashtable.java (Entry): Extend BasicMapEntry. (putAll): Test for BasicMapEntry. Change references from `HashMap.Entry' to `Entry' in various places. * Makefile.am: Add BasicMapEntry.java. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38410 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/GregorianCalendar.java (GregorianCalendar): Constructorswarrenl2000-12-191-3/+3
| | | | | | | | need to set timezone to a valid non-null value. Partial fix for PR 331. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38375 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR asbryce2000-12-181-5/+10
| | | | | | | end-of-stream if avail_in is 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38338 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/ArrayList.java (data): Declare transient.bryce2000-12-171-14/+6
| | | | | | | | | (serialPersistantFields): Removed. (readObject): Use defaultReadObject(), not readFields(). (writeObject): Use defaultWriteObject(), not writeFields(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38328 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>bryce2000-12-172-22/+14
| | | | | | | | | * java/util/Hashtable.java (put): Remove `last' variable. Link new entry to head of list. * java/util/HashMap.java (put): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38325 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/ResourceBundle.java (trySomeGetBundle): Pass classtromey2000-12-151-1/+3
| | | | | | | loader to Class.forName. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38289 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/ResourceBundle.javatromey2000-12-151-8/+17
| | | | | | | | | (getBundle(String,Locale,ClassLoader)): New method. (trySomeGetBundle): Added `loader' argument. (partialGetBundle): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38275 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.bryce2000-12-111-7/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38185 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am: Add HashSet.java and java/lang/ref classes.bryce2000-12-1110-1969/+2318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove BasicMapEntry.java and Bucket.java. * Makefile.in: Rebuilt. * java/util/HashMap.java: Rewritten. * java/util/HashSet.java: Imported from classpath. * java/util/WeakHashMap.java: Imported from classpath. * java/util/Hashtable.java: Rewritten based on new HashMap code. * java/util/Bucket.java: Deleted. * java/util/BasicMapEntry.java: Deleted. * java/util/Collections.java (search): Use a for-loop, not iterator hasNext(). (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out of elements in source. (max): Use a for-loop. (min): Ditto. (reverse): Keep track of positions instead of using Iterator's nextIndex() and previousIndex(). (shuffle(List)): Initialize defaultRandom if required using double-check thread safety idiom. Call two-argument shuffle method using defaultRandom. (defaultRandom): New field. (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of using previousIndex() and nextIndex(). (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry. * java/util/AbstractCollection.java (toString): Use a StringBuffer. * java/util/AbstractMap.java (toString): Use StringBuffer. * java/lang/ref/PhantomReference.java: Imported from classpath. * java/lang/ref/SoftReference.java: Ditto. * java/lang/ref/Reference.java: Ditto. * java/lang/ref/WeakReference.java: Ditto. * java/lang/ref/ReferenceQueue.java: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38183 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/BitSet.java: Updated copyright notice.tromey2000-12-061-4/+21
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38078 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/text/Collator.java (decomposeCharacter, decmp, strength):tromey2000-12-062-2/+2
| | | | | | | | | | | Now package-private, not protected. * java/text/DateFormatSymbols.java (equals): Now private. * java/text/DecimalFormatSymbols.java (safeGetChar): Now private. * java/util/BitSet.java: Class no longer final. * java/util/Set.java (toArray(Object[])): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38075 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TimeZone.java (getAvailableIDs): Activated commentedwarrenl2000-12-041-10/+0
| | | | | | | out code dependent on compiler and library changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37994 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/FilePermission.java: Made class final per spec.warrenl2000-12-041-1/+1
| | | | | | | | | * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed method name to match spec (fixed typo). * java/util/LinkedList.java: Implements List. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37993 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Vector.java (insertElementAt): Unconditionallytromey2000-12-021-2/+7
| | | | | | | | increment elementCount. (removeRange): Clear unused slots in vector. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37944 138bc75d-0d04-0410-961f-82ee72b054a4
* From Adam Welc <welc@cs.purdue.edu>:bryce2000-12-021-1/+11
| | | | | | | | | * java/util/LinkedList.java (removeFirst): Update `first' field. Handle the last == first case. (removeLast): Update `last' field. Handle the last == first case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37940 138bc75d-0d04-0410-961f-82ee72b054a4
* Check this.len, not len, when determining if there is no more input data.bryce2000-11-291-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37847 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/InflaterInputStream (read): Don't return -1 unlessbryce2000-11-291-7/+10
| | | | | | | | | | | the infate() call didn't deliver any output. Throw a ZipException if the needsDictionary() call returns true. * java/io/ByteArrayInputStream (read): Remove redundant bounds checks. * java/io/InputStreamReader: Use the default buffer size for the contained BufferedInputStream. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37846 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am: Added natTimeZone.cc.warrenl2000-11-282-114/+1098
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries. * java/text/DateFormatSymbols.java (ampms): Made package private. (eras): Made package private. (months): Made package private. (shortMonths): Made package private. (shortWeekdays): Made package private. (weekdays): Made package private. (formatPrefixes): New private field. (localPatternCharsDefault): Made private. (dateFormats): New package private field. (timeFormats): New package private field. (formatsForKey): New private method. (DateFormatSymbols(Locale)): Set dateFormats and timeFormats. (DateFormatSymbols(DateFormatSymbols)): Ditto. * java/text/SimpleDateFormat.java: Merged with Classpath. * java/util/TimeZone.java: Merged with Classpath. * java/util/natTimeZone.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37808 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-273-39/+38
| | | | | | | | | | | | | | | | | | | | * java/util/Vector.java (ensureCapacity): Don't increment modCount. (addElement): Don't increment elementCount twice. Doh. * java/util/ArrayList.java (add): Only call ensureCapacity if the array needs to be expanded. (addAll): Ditto. * java/util/Collections.java (UnmodifiableCollection): Implement toString(). (UnmodifiableList): Throw UnsupportedOperationException from modification methods. Set `l' from the one-parameter constructor. (UnmodifiableMap): Implement toString(). (SynchronizedCollection): Ditto. (SynchronizedList): Set `l' from the one-parameter constructor. (SynchronizedSortedSet): Set `ss' from the one-parameter constructor. (SynchronizedMap): Implement toString(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37785 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-231-18/+23
| | | | | | | | | | | | * java/util/Vector.java: Improve exception messages. (Vector): Check initialCapacity for IllegalArgumentException. (tromToSize): Don't check for elementCount == elementData.length case. (toArray): Don't try to set null marker if target array is the same length as the vector. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37685 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud