mirror of
https://github.com/apache/struts.git
synced 2026-08-06 23:27:07 +00:00
fix for WW-4573
NPE/ concurrent modification exception using a CopyOnWriteArrayList. This is to keep Memory consistency on the ValueStack.
This commit is contained in:
committed by
Lukasz Lenart
parent
f295852482
commit
1158b0adda
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user