Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.6.1
-
None
-
None
Description
Looking at the code it does:
public Object clone() { VelocityContext clone = null; try { clone = (VelocityContext) super.clone(); clone.context = new HashMap(context); } catch (CloneNotSupportedException ignored) { } return clone; }
new HashMap() will not perform deep cloning but only shallow cloning.