Skip to content

Commit 91539f7

Browse files
committed
Fix ArrayList creation from Collection introduced in previous changeset
Change-Id: I90ec2a9fa11efa027299d638807bdfb737804af9
1 parent cf4c60e commit 91539f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user/super/com/google/gwt/emul/java/util/ArrayList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public ArrayList() {
6262

6363
public ArrayList(Collection<? extends E> c) {
6464
// Avoid calling overridable methods from constructors
65-
array = (E[]) c.toArray();
65+
ArrayHelper.insertTo(array, 0, c.toArray());
6666
}
6767

6868
public ArrayList(int initialCapacity) {

0 commit comments

Comments
 (0)