commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1779938 - /commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
Date Mon, 23 Jan 2017 14:54:49 GMT
Author: tv
Date: Mon Jan 23 14:54:49 2017
New Revision: 1779938

URL: http://svn.apache.org/viewvc?rev=1779938&view=rev
Log:
Fix creation time not updating during clone()

Modified:
    commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java

Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java?rev=1779938&r1=1779937&r2=1779938&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
(original)
+++ commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
Mon Jan 23 14:54:49 2017
@@ -446,7 +446,9 @@ public class ElementAttributes
     {
         try
         {
-            return (IElementAttributes)super.clone();
+        	ElementAttributes c = (ElementAttributes) super.clone();
+        	c.setCreateTime();
+            return c;
         }
         catch (CloneNotSupportedException e)
         {



Mime
View raw message