Thanks for the report. addAll(int, Collection) had never been used in ProActive. I fixed it and it should be follow the contract defined by
http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html#addAll(int, java.util.Collection) . In addition addAll(Collection) now calls c.addAll(c.size(), Collection).
Please note that addAll(int, Collection) is not heavily optimized. Cells are copied one by one instead of using System.arraycopy.
The patch is available in the trunk (#11868). Can you test it ? We have to decide if it should be applied to maintenance releases (4.0.4 and 4.1.1) or not.
Please note that addAll(int, Collection) is not heavily optimized. Cells are copied one by one instead of using System.arraycopy.
The patch is available in the trunk (#11868). Can you test it ? We have to decide if it should be applied to maintenance releases (4.0.4 and 4.1.1) or not.