Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.5
-
Fix Version/s: 2.0.7
-
Component/s: Core: Flow Definition Registry
-
Labels:None
Description
As a result, after merging in flow3:list:show will be 6 actions (which is correct), but in flow1:list:show will be the 6 objects too (which is wrong).
Wrong behavior takes place, because actions shares the same LinkedList.
In your source code:
public void merge(Model model)
Proposed change:
LinkedList mergeResult = merge(getActions(), transition.getActions(), false);
setActions(mergeResult != null ? new LinkedList(mergeResult) : null);