Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
If OrderedComponentAdapterLifecycleManager is used as the lifecycle manager it can crash if during the startup process more component adapters are added. The result is a java.util.ConcurrentModificationException.
The line:
adapters = orderedComponentAdapters;
should be changed to:
adapters = new ArrayList(orderedComponentAdapters);
so that it will work on a copy of the list instead of the list itself.
Well, I'll have a look at this, but your fix is IMHO not the solution, because it is quite normal, that new elements are added to this list in start-up phase ... but I ned a closer look at the source.