Hi Alexey,
This testcase is added by me when fix HARMONY-4513, I think it should
not depend on vm. So I'm a little confused, would you please help to
try following test
gGregorianCalendar c = new
GregorianCalendar(TimeZone.getTimeZone("GMT"));
gc.set(1582, Calendar.OCTOBER, 15, 0, 0, 0);
assertEquals(1582, gc.get(Calendar.YEAR));
assertEquals(Calendar.OCTOBER, gc.get(Calendar.MONTH));
assertEquals(15, gc.get(Calendar.DAY_OF_MONTH));
assertEquals(0, gc.get(Calendar.HOUR_OF_DAY));
assertEquals(0, gc.get(Calendar.MINUTE));
assertEquals(0, gc.get(Calendar.SECOND));
gc.set(1582, Calendar.OCTOBER, 14, 0, 0, 0);
assertEquals(24, gc.get(Calendar.DAY_OF_MONTH));
if it passes and the line 732 of current GregorianCalendarTest still
fails, I should say it is due to different time zone and modify the
testcase. Thanks.
On 7/24/07, Alexey Varlamov <[EMAIL PROTECTED]> wrote:
Seems it fails on DRLVM only.
2007/7/24, Alexey Varlamov <[EMAIL PROTECTED]>:
> The recently modified GregorianCalendarTest fails now, are there
> someone looking at this?
>
> junit.framework.AssertionFailedError: expected:<15> but was:<5>
> at
tests.api.java.util.GregorianCalendarTest.test_getI(GregorianCalendarTest.java:732)
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
>
--
Tony Wu
China Software Development Lab, IBM