openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r485809 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
Date Mon, 11 Dec 2006 18:54:00 GMT
Author: awhite
Date: Mon Dec 11 10:54:00 2006
New Revision: 485809

URL: http://svn.apache.org/viewvc?view=rev&rev=485809
Log:
Copy all calendar parameters that go towards equals() comparisons.


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=485809&r1=485808&r2=485809
==============================================================================
--- 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
Mon Dec 11 10:54:00 2006
@@ -1018,6 +1018,30 @@
             code.dup();
             code.aload().setParam(0);
             code.checkcast().setType(Calendar.class);
+            code.invokevirtual().setMethod(Calendar.class, "isLenient", 
+                boolean.class, null);
+            code.invokevirtual().setMethod(type, "setLenient", void.class,
+                new Class[] { boolean.class });
+
+            code.dup();
+            code.aload().setParam(0);
+            code.checkcast().setType(Calendar.class);
+            code.invokevirtual().setMethod(Calendar.class, "getFirstDayOfWeek", 
+                int.class, null);
+            code.invokevirtual().setMethod(type, "setFirstDayOfWeek", 
+                void.class, new Class[] { int.class });
+
+            code.dup();
+            code.aload().setParam(0);
+            code.checkcast().setType(Calendar.class);
+            code.invokevirtual().setMethod(Calendar.class, 
+                "getMinimalDaysInFirstWeek", int.class, null);
+            code.invokevirtual().setMethod(type, "setMinimalDaysInFirstWeek", 
+                void.class, new Class[] { int.class });
+
+            code.dup();
+            code.aload().setParam(0);
+            code.checkcast().setType(Calendar.class);
             code.invokevirtual().setMethod(Calendar.class, "getTimeZone", 
                 TimeZone.class, null);
             code.invokevirtual().setMethod(type, "setTimeZone", void.class,



Mime
View raw message