gcc/libjava/java
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
..
applet backport: Applet.java: New file. 2000-07-12 05:52:04 +01:00
awt Makefile.am: Added rules for libgcjx library. 2000-10-22 17:46:09 +00:00
beans PropertyChangeEvent.java (serialVersionUID): Added. 2000-09-08 19:37:09 +00:00
io Reader.java: Merge docs from classpath. 2000-10-30 09:20:47 +00:00
lang Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +00:00
math Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +00:00
net natField.cc (BooleanClass): Don't define. 2000-10-06 01:49:32 +00:00
security Makefile.am: Removed java/io/Replaceable.java and java/io/Resolvable.java. 2000-10-05 23:57:16 +00:00
sql LocaleData_en.java (monetarySeparator): Added. 2000-10-10 23:09:08 +00:00
text LocaleData_en.java (monetarySeparator): Added. 2000-10-10 23:09:08 +00:00
util AbstractList.java: Throw messages with IndexOutOfBoundsExceptions. 2000-11-02 10:08:03 +00:00