[kaffe] Bug in Kaffe 1.0.7
Ito Kazumitsu
kaz at maczuka.gcd.org
Fri Jul 25 16:53:02 PDT 2003
>>>>> ":" == Clemens Eisserer <ceisserer at utanet.at> writes:
:> I´ve found a bug in Kaffe 1.0.7 (sorry, was not ablt to test 1.1.0)
:> 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 = Calendar.getInstance();
System.out.println("MONTH=" + c.get(Calendar.MONTH));
System.out.println("WEEK_OF_YEAR=" + c.get(Calendar.WEEK_OF_YEAR));
System.out.println("WEEK_OF_MONTH=" + c.get(Calendar.WEEK_OF_MONTH));
System.out.println("DAY_OF_YEAR=" + c.get(Calendar.DAY_OF_YEAR));
System.out.println("DAY_OF_MONTH=" + c.get(Calendar.DAY_OF_MONTH));
System.out.println("DAY_OF_WEEK_IN_MONTH=" + c.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println("DAY_OF_WEEK=" + c.get(Calendar.DAY_OF_WEEK));
System.out.println("HOUR=" + c.get(Calendar.HOUR));
System.out.println("HOUR_OF_DAY=" + c.get(Calendar.HOUR_OF_DAY));
}
}
With kaffe (ChangeLog head: 2003-07-20 Fabio.di.Fabio <abel at lmib.org>):
MONTH=6
WEEK_OF_YEAR=31
WEEK_OF_MONTH=5
DAY_OF_YEAR=207
DAY_OF_MONTH=26
DAY_OF_WEEK_IN_MONTH=3
DAY_OF_WEEK=7
HOUR=8
HOUR_OF_DAY=8
With Sun's (java full version "1.4.2-b28"):
MONTH=6
WEEK_OF_YEAR=30
WEEK_OF_MONTH=4
DAY_OF_YEAR=207
DAY_OF_MONTH=26
DAY_OF_WEEK_IN_MONTH=4
DAY_OF_WEEK=7
HOUR=8
HOUR_OF_DAY=8
More information about the kaffe
mailing list