[PATCH] Regenerate TimeZone.java from tzdata2007a

Tom Tromey tromey@redhat.com
Wed Feb 14 01:59:00 GMT 2007


Tom>    at java.util.SimpleTimeZone.checkRule(SimpleTimeZone.java:441)

This is called as:

Breakpoint 5, java.util.SimpleTimeZone.checkRule(int, int, int)int (
    this=@9e320, month=2, day=8, dayOfWeek=1)
    at ../../../../../trunk/libjava/classpath/java/util/SimpleTimeZone.java:440

It fails here:

	if (Math.abs(day) > (daysInMonth + 6) / 7)
	  throw new IllegalArgumentException("dayOfWeekInMonth out of range");

I don't understand what this test is trying to do.
It seems to be comparing a day value against a week value.

I'm also a bit lost as to what these parameters are supposed to mean.
According to the JDK javadoc, there is no meaning assigned when all of
month, day, and dayOfWeek are >0.  Perhaps I'm missing a case somehow.

Anyway, you probably need to know my tzid in order to fully debug
this:

(gdb) p tzid
$15 = java.lang.String "MST7MDT,M3.2.0,M11.1.0"

If you can't get to it, I will do it tomorrow.  It is the end of the
day here or I would spend some time on it now.

Tom



More information about the Java-patches mailing list