[kaffe] Bug in Kaffe 1.0.7
Ito Kazumitsu
kaz@maczuka.gcd.org
Fri Jul 25 16:53:02 2003
>>>>> ":" =3D=3D Clemens Eisserer <ceisserer@utanet.at> writes:
:> I=B4ve found a bug in Kaffe 1.0.7 (sorry, was not ablt to test 1.1.0)=20
:> related to Calendar:
:> Dont know if its fixed, so please could you verify this bug on 1.1.0....
With the CVS version of 2003-07-20, the same problem occurs.
This is my test program and results.
import java.util.Calendar;
public class CalendarTest {
public static void main(String[] args) {
Calendar c =3D Calendar.getInstance();
System.out.println("MONTH=3D" + c.get(Calendar.MONTH));
System.out.println("WEEK_OF_YEAR=3D" + c.get(Calendar.WEEK_OF_YEAR));
System.out.println("WEEK_OF_MONTH=3D" + c.get(Calendar.WEEK_OF_MONTH));
System.out.println("DAY_OF_YEAR=3D" + c.get(Calendar.DAY_OF_YEAR));
System.out.println("DAY_OF_MONTH=3D" + c.get(Calendar.DAY_OF_MONTH));
System.out.println("DAY_OF_WEEK_IN_MONTH=3D" + c.get(Calendar.DAY_OF_WE=
EK_IN_MONTH));
System.out.println("DAY_OF_WEEK=3D" + c.get(Calendar.DAY_OF_WEEK));
System.out.println("HOUR=3D" + c.get(Calendar.HOUR));
System.out.println("HOUR_OF_DAY=3D" + c.get(Calendar.HOUR_OF_DAY));
}
}
With kaffe (ChangeLog head: 2003-07-20 Fabio.di.Fabio <abel@lmib.org>):
MONTH=3D6
WEEK_OF_YEAR=3D31
WEEK_OF_MONTH=3D5
DAY_OF_YEAR=3D207
DAY_OF_MONTH=3D26
DAY_OF_WEEK_IN_MONTH=3D3
DAY_OF_WEEK=3D7
HOUR=3D8
HOUR_OF_DAY=3D8
With Sun's (java full version "1.4.2-b28"):
MONTH=3D6
WEEK_OF_YEAR=3D30
WEEK_OF_MONTH=3D4
DAY_OF_YEAR=3D207
DAY_OF_MONTH=3D26
DAY_OF_WEEK_IN_MONTH=3D4
DAY_OF_WEEK=3D7
HOUR=3D8
HOUR_OF_DAY=3D8