Commit 0ad35392 by Bryce McKinlay Committed by Bryce McKinlay

AbstractList.java (remove): Comment out modCount increment to work around compiler bug.

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.

From-SVN: r37204
parent 7177dab5
2000-11-02 Bryce McKinlay <bryce@albatross.co.nz> 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 * java/util/AbstractList.java: Throw messages with
IndexOutOfBoundsExceptions. IndexOutOfBoundsExceptions.
(listIterator()): Call listIterator(0). (listIterator()): Call listIterator(0).
......
...@@ -496,7 +496,8 @@ public abstract class AbstractList extends AbstractCollection implements List ...@@ -496,7 +496,8 @@ public abstract class AbstractList extends AbstractCollection implements List
public void remove() public void remove()
{ {
i.remove(); i.remove();
SubList.this.modCount++; // FIXME: Uncomment the following line once the compiler is fixed.
//SubList.this.modCount++;
size--; size--;
position = nextIndex(); position = nextIndex();
} }
...@@ -509,7 +510,8 @@ public abstract class AbstractList extends AbstractCollection implements List ...@@ -509,7 +510,8 @@ public abstract class AbstractList extends AbstractCollection implements List
public void add(Object o) public void add(Object o)
{ {
i.add(o); i.add(o);
SubList.this.modCount++; // FIXME: Uncomment the following line once the compiler is fixed.
//SubList.this.modCount++;
size++; size++;
position++; position++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment