jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r629770 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/DateValue.java
Date Thu, 21 Feb 2008 12:56:36 GMT
Author: stefan
Date: Thu Feb 21 04:56:35 2008
New Revision: 629770

URL: http://svn.apache.org/viewvc?rev=629770&view=rev
Log:
JCR-1396: DateValue.getDate not a copy

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/DateValue.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/DateValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/DateValue.java?rev=629770&r1=629769&r2=629770&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/DateValue.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/DateValue.java
Thu Feb 21 04:56:35 2008
@@ -134,7 +134,7 @@
         setValueConsumed();
 
         if (date != null) {
-            return date;
+            return (Calendar) date.clone();
         } else {
             throw new ValueFormatException("empty value");
         }



Mime
View raw message