openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r484900 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
Date Sat, 09 Dec 2006 03:08:53 GMT
Author: awhite
Date: Fri Dec  8 19:08:52 2006
New Revision: 484900

URL: http://svn.apache.org/viewvc?view=rev&rev=484900
Log:
Fix calendar proxy bug.


Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java?view=diff&rev=484900&r1=484899&r2=484900
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
Fri Dec  8 19:08:52 2006
@@ -214,7 +214,8 @@
             type = GregorianCalendar.class;
         ProxyCalendar proxy = getFactoryProxyCalendar(type);
         ProxyCalendar cal = proxy.newInstance();
-        ((Calendar) cal).setTimeZone(zone);
+        if (zone != null)
+            ((Calendar) cal).setTimeZone(zone);
         return cal;
     }
 



Mime
View raw message