aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/java/util/AbstractList.java6
2 files changed, 10 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 4ad11eb..89e23c4 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,11 @@
2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
+ * java/util/AbstractList.java (remove): Comment out modCount increment
+ to work around compiler bug.
+ (add): Ditto.
+
+2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
+
* java/util/AbstractList.java: Throw messages with
IndexOutOfBoundsExceptions.
(listIterator()): Call listIterator(0).
diff --git a/libjava/java/util/AbstractList.java b/libjava/java/util/AbstractList.java
index 03282e5..cec2c29 100644
--- a/libjava/java/util/AbstractList.java
+++ b/libjava/java/util/AbstractList.java
@@ -496,7 +496,8 @@ public abstract class AbstractList extends AbstractCollection implements List
public void remove()
{
i.remove();
- SubList.this.modCount++;
+ // FIXME: Uncomment the following line once the compiler is fixed.
+ //SubList.this.modCount++;
size--;
position = nextIndex();
}
@@ -509,7 +510,8 @@ public abstract class AbstractList extends AbstractCollection implements List
public void add(Object o)
{
i.add(o);
- SubList.this.modCount++;
+ // FIXME: Uncomment the following line once the compiler is fixed.
+ //SubList.this.modCount++;
size++;
position++;
}