Repository: struts Updated Branches: refs/heads/master 8aebdc3e6 -> cb0475d61
fix for WW-4573 NPE/ concurrent modification exception using a CopyOnWriteArrayList. This is to keep Memory consistency on the ValueStack. Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/1df5a75b Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/1df5a75b Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/1df5a75b Branch: refs/heads/master Commit: 1df5a75bfcc3c1093a2516f16258bbe96d5d8dcf Parents: ac4199e Author: Victor Sosa <victorns...@gmail.com> Authored: Sat Jan 2 15:18:37 2016 -0400 Committer: Victor Sosa <victorns...@gmail.com> Committed: Sat Jan 2 15:18:37 2016 -0400 ---------------------------------------------------------------------- .../main/java/com/opensymphony/xwork2/util/CompoundRoot.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/1df5a75b/core/src/main/java/com/opensymphony/xwork2/util/CompoundRoot.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/com/opensymphony/xwork2/util/CompoundRoot.java b/core/src/main/java/com/opensymphony/xwork2/util/CompoundRoot.java index 9abade0..e548a00 100644 --- a/core/src/main/java/com/opensymphony/xwork2/util/CompoundRoot.java +++ b/core/src/main/java/com/opensymphony/xwork2/util/CompoundRoot.java @@ -17,6 +17,7 @@ package com.opensymphony.xwork2.util; import java.util.ArrayList; import java.util.List; +import java.util.concurrent.CopyOnWriteArrayList; /** @@ -25,12 +26,14 @@ import java.util.List; * @author plightbo * @version $Revision$ */ -public class CompoundRoot extends ArrayList { +public class CompoundRoot extends CopyOnWriteArrayList<Object> { + + private static final long serialVersionUID = 8563229069192473995L; public CompoundRoot() { } - public CompoundRoot(List list) { + public CompoundRoot(List<?> list) { super(list); }