Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Novice
Description
The following code works on RI but causes an array index out of bounds exception on Harmony.
ArrayList alist = new ArrayList();
ArrayList blist = new ArrayList();
alist.add("a");
alist.add("b");
blist.add("c");
blist.add("d");
blist.remove(0);
blist.addAll(0, alist);
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1