I'm checking this in on the generics branch.
twisti points out that we were missing this constructor.
Tom
Index: ChangeLog
from Tom Tromey <[EMAIL PROTECTED]>
* java/util/concurrent/CopyOnWriteArrayList.java
(CopyOnWriteArrayList): New constructor.
Index: java/util/concurrent/CopyOnWriteArrayList.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/java/util/concurrent/Attic/CopyOnWriteArrayList.java,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 CopyOnWriteArrayList.java
--- java/util/concurrent/CopyOnWriteArrayList.java 21 Jul 2006 22:41:54 -0000
1.1.2.2
+++ java/util/concurrent/CopyOnWriteArrayList.java 18 Sep 2006 21:22:44 -0000
@@ -84,6 +84,20 @@
}
/**
+ * Construct a new ArrayList, and initialize it with the elements in the
+ * supplied array.
+ *
+ * @param array
+ * the array used to initialize this list
+ * @throws NullPointerException
+ * if array is null
+ */
+ public CopyOnWriteArrayList(E[] array)
+ {
+ data = array.clone();
+ }
+
+ /**
* Returns the number of elements in this list.
*
* @return the list size