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
This commit is contained in:
A. Abram White 2006-12-11 18:54:00 +00:00
parent 9dcdd3a35d
commit 600d949140
1 changed files with 24 additions and 0 deletions

View File

@ -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);