Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
return (Statistics[])statsList.toArray(new Statistics[statlist.size()]); must be converted to
(Statistics[])statsList.toArray(new Statistics[0]);
This is done to avoid a race condition, where the size of the CopyOnWriteArray increases after allocating the size for the array in which the CopyOnWriteArray is to be placed.