gcc/libjava/java/util
Bryce McKinlay 7177dab5c9 AbstractList.java: Throw messages with IndexOutOfBoundsExceptions.
2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/util/AbstractList.java: Throw messages with
	IndexOutOfBoundsExceptions.
	 (listIterator()): Call listIterator(0).
	(size): New field. Initialize to size().
	(hasNext): Test position against size, not size().
	(remove): Increment knownMod by one instead of resetting it from
	modCount.
	(add): Ditto.
	(SubList.upMod): Removed.
	(SubList.set): Don't call upMod() or update knownMod.
	(SubList.add(int,Object)): Increment modCount instead of calling
	upMod().
	(SubList.remove): Ditto.
	(SubList.addAll): Don't call backingList.size(). Increment size from
	c.size().
	(SubList.iterator): New method. Call listIterator(0).
	(SubList.listIterator): New method. Restore code to return an
	anonymous listIterator implementation (with some changes).
	* java/util/AbstractSequentialList.java: Throw messages with
	IndexOutOfBoundsExceptions.
	(addAll): Add a specnote.
	* java/util/ArrayList.java (removeRange): Get the math right.
	(addAll): Increment modCount _before_ creating iterator.
	* java/util/LinkedList.java: Rewritten, mostly.

From-SVN: r37203
2000-11-02 10:08:03 +00:00
..
jar ZipFile.java: Implement OPEN_DELETE mode... 2000-08-27 22:26:27 +00:00
zip ZipFile.java (ZipFile): Delete file when opened in DELETE mode. 2000-09-04 21:20:27 +00:00
AbstractCollection.java AbstractCollection.java (addAll): Use size() instead of hasNext() in iterator loop. 2000-10-29 05:06:10 +00:00
AbstractList.java AbstractList.java: Throw messages with IndexOutOfBoundsExceptions. 2000-11-02 10:08:03 +00:00
AbstractMap.java AbstractCollection.java (addAll): Use size() instead of hasNext() in iterator loop. 2000-10-29 05:06:10 +00:00
AbstractSequentialList.java AbstractList.java: Throw messages with IndexOutOfBoundsExceptions. 2000-11-02 10:08:03 +00:00
AbstractSet.java AbstractCollection.java (addAll): Use size() instead of hasNext() in iterator loop. 2000-10-29 05:06:10 +00:00
ArrayList.java AbstractList.java: Throw messages with IndexOutOfBoundsExceptions. 2000-11-02 10:08:03 +00:00
Arrays.java
BasicMapEntry.java Attributes.java, [...]: Imported from Classpath. 2000-08-19 18:19:42 +00:00
BitSet.java BitSet.java: Updated @specnote. 2000-10-30 01:51:34 +00:00
Bucket.java Attributes.java, [...]: Imported from Classpath. 2000-08-19 18:19:42 +00:00
Calendar.java Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +00:00
Collection.java
Comparator.java
ConcurrentModificationException.java
Date.java Makefile.am: Removed java/io/Replaceable.java and java/io/Resolvable.java. 2000-10-05 23:57:16 +00:00
Dictionary.java
EmptyStackException.java
Enumeration.java
EventListener.java
EventObject.java EventObject.java: Merged from classpath. 2000-10-24 11:53:56 +01:00
GregorianCalendar.java Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +00:00
HashMap.java ArrayList.java, [...]: Imported from GNU Classpath. 2000-08-27 22:06:44 +00:00
Hashtable.java Attributes.java, [...]: Imported from Classpath. 2000-08-19 18:19:42 +00:00
Iterator.java
LinkedList.java AbstractList.java: Throw messages with IndexOutOfBoundsExceptions. 2000-11-02 10:08:03 +00:00
List.java
ListIterator.java
ListResourceBundle.java
Locale.java Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +00:00
Map.java Attributes.java, [...]: Imported from Classpath. 2000-08-19 18:19:42 +00:00
MissingResourceException.java
natGregorianCalendar.cc natGregorianCalendar.cc (computeFields): Set the isSet__ array elements to true. 2000-10-27 11:53:53 +00:00
NoSuchElementException.java
Observable.java
Observer.java
Properties.java * java/util/Properties.java: Merged with Classpath version. 2000-10-07 18:13:11 +00:00
PropertyPermission.java natSystem.cc (init_properties): Change sourceware reference to sources.redhat.com. 2000-08-21 06:05:20 +00:00
PropertyResourceBundle.java
Random.java PropertyChangeEvent.java (serialVersionUID): Added. 2000-09-08 19:37:09 +00:00
ResourceBundle.java ResourceBundle.java (trySomeGetBundle): Removed debugging prints. 2000-08-21 21:25:55 +00:00
Set.java Attributes.java, [...]: Imported from Classpath. 2000-08-19 18:19:42 +00:00
SimpleTimeZone.java Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +00:00
SortedMap.java ArrayList.java, [...]: Imported from GNU Classpath. 2000-08-27 22:06:44 +00:00
SortedSet.java ArrayList.java, [...]: Imported from GNU Classpath. 2000-08-27 22:06:44 +00:00
Stack.java PropertyChangeEvent.java (serialVersionUID): Added. 2000-09-08 19:37:09 +00:00
StringTokenizer.java
Timer.java ArrayList.java, [...]: Imported from GNU Classpath. 2000-08-27 22:06:44 +00:00
TimerTask.java ArrayList.java, [...]: Imported from GNU Classpath. 2000-08-27 22:06:44 +00:00
TimeZone.java PropertyChangeEvent.java (serialVersionUID): Added. 2000-09-08 19:37:09 +00:00
TooManyListenersException.java
Vector.java PropertyChangeEvent.java (serialVersionUID): Added. 2000-09-08 19:37:09 +00:00