From: Bryce McKinlay Date: Thu, 2 Nov 2000 10:17:15 +0000 (+0000) Subject: AbstractList.java (remove): Comment out modCount increment to work around compiler... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ad35392f46ddaba1057e59b5790c237afca9bfd;p=gcc.git AbstractList.java (remove): Comment out modCount increment to work around compiler bug. 2000-11-02 Bryce McKinlay * java/util/AbstractList.java (remove): Comment out modCount increment to work around compiler bug. (add): Ditto. From-SVN: r37204 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 4ad11eb751c..89e23c4d1d0 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2000-11-02 Bryce McKinlay + + * java/util/AbstractList.java (remove): Comment out modCount increment + to work around compiler bug. + (add): Ditto. + 2000-11-02 Bryce McKinlay * java/util/AbstractList.java: Throw messages with diff --git a/libjava/java/util/AbstractList.java b/libjava/java/util/AbstractList.java index 03282e5ebe8..cec2c298fad 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++; }