From 369a67794e5de32d7ce0891ed9fafd8808089cd9 Mon Sep 17 00:00:00 2001 From: bryce Date: Thu, 2 Nov 2000 10:08:03 +0000 Subject: 2000-11-02 Bryce McKinlay * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37203 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/ChangeLog | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'libjava/ChangeLog') diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 1901cfce861..4ad11eb751c 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,29 @@ +2000-11-02 Bryce McKinlay + + * 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 caling 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. + 2000-11-01 Tom Tromey * scripts/encodings.pl: Added `ASCII' alias. -- cgit v1.2.3