From 600d949140636d03582c919c963bd58a2d27e824 Mon Sep 17 00:00:00 2001 From: "A. Abram White" Date: Mon, 11 Dec 2006 18:54:00 +0000 Subject: [PATCH] Copy all calendar parameters that go towards equals() comparisons. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485809 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/openjpa/util/ProxyManagerImpl.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java index be652d4f8..ec357af72 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java @@ -1015,6 +1015,30 @@ public class ProxyManagerImpl code.invokevirtual().setMethod(type, "setTimeInMillis", void.class, new Class[] { long.class }); + 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);