From 1c59aa51d868fae2bd757ac3b39d8a19d32ec9b0 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 12 Aug 2011 14:29:22 -0600 Subject: [PATCH] add fields and methods to AbstractList for compatibility Google Protocol Buffers relies on these. --- classpath/java/util/AbstractList.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/classpath/java/util/AbstractList.java b/classpath/java/util/AbstractList.java index fa1abbd65a..e1d4f3c307 100644 --- a/classpath/java/util/AbstractList.java +++ b/classpath/java/util/AbstractList.java @@ -12,4 +12,14 @@ package java.util; public abstract class AbstractList extends AbstractCollection implements List -{ } +{ + protected int modCount; + + public Iterator iterator() { + return listIterator(); + } + + public ListIterator listIterator() { + return new Collections.ArrayListIterator(this); + } +}