-
Type:
Improvement
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.1.8.1
-
Fix Version/s: 2.2.1
-
Component/s: Dispatch Filter
-
Labels:None
Noticed that the Map-wrapper classes (org.apache.struts2.dispatcher.RequestMap etc.) returns the new value from put-method.
request.setAttribute(key.toString(), value);
return get(key);
Should be:
V value = get(key);
request.setAttribute(key.toString(), value);
return value;
in order to be consistent with other Map-implementations.