[kaffe] java.util.Calendar fuckage(I really need a stronger word)

Adam Heath doogie at brainfood.com
Sun Dec 19 21:49:02 PST 2004


adam at gradall:~/code/kaffe/HEAD/build$ cat foo.java
import java.util.Calendar;

public class foo {
        public static void main(String[] args) {
                System.err.println(Calendar.getInstance());
        }
}
adam at gradall:~/code/kaffe/HEAD/build$ (. BUILD_ENVIRONMENT ;$JAVA -classpath .
foo)
java.util.GregorianCalendar[time=1103521440722,
zone=java.util.SimpleTimeZone[id=EST,offset=-18000000,
dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,
startMonth=3,startDay=1,startDayOfWeek=1,startTime=7200000,
startTimeMode=0,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,
endTime=7200000,endTimeMode=0],areFieldsSet=false,ERA=?,YEAR=?,
MONTH=?,WEEK_OF_YEAR=?,WEEK_OF_MONTH=?,DAY_OF_MONTH=?,DAY_OF_YEAR=?,
DAY_OF_WEEK=?,DAY_OF_WEEK_IN_MONTH=?,AM_PM=?,HOUR=?,HOUR_OF_DAY=?,
MINUTE=?,SECOND=?,MILLISECOND=?,ZONE_OFFSET=?,DST_OFFSET=?,lenient=true,
firstDayOfWeek=1,minimalDaysInFirstWeek=1]

(line breaks are my own doing)

Note that all the fields are ?.  This does not happen with sun, of course.

Is there a missing merge somewhere?

ps: This is causing some breakage in commons-net in gump, which is how I found
it.




More information about the kaffe mailing list