This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Regenerate TimeZone.java from tzdata2007a
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Mark Wielaard <mark at klomp dot org>, java-patches at gcc dot gnu dot org
- Date: 13 Feb 2007 16:17:24 -0700
- Subject: Re: [PATCH] Regenerate TimeZone.java from tzdata2007a
- References: <20070209102650.GB22959@devserv.devel.redhat.com> <17868.20745.177493.231897@zebedee.pink>
- Reply-to: tromey at redhat dot com
>> This patch fixes 2 bugs in timezones.pl:
[...]
With svn trunk this program fails on my FC 6 box. Error appended.
import java.util.*;
public class q {
public static void main(String[] args) throws Throwable{
System.out.println(TimeZone.getDefault());
}
}
Tom
Exception in thread "main" java.lang.IllegalArgumentException: dayOfWeekInMonth out of range
at java.util.SimpleTimeZone.checkRule(SimpleTimeZone.java:441)
at java.util.SimpleTimeZone.setStartRule(SimpleTimeZone.java:476)
at java.util.SimpleTimeZone.<init>(SimpleTimeZone.java:334)
at java.util.SimpleTimeZone.<init>(SimpleTimeZone.java:356)
at java.util.TimeZone.getDefaultTimeZone(TimeZone.java:1061)
at java.util.VMTimeZone.getDefaultTimeZoneId(VMTimeZone.java:116)
at java.util.TimeZone$1.run(TimeZone.java:114)
at java.security.AccessController.doPrivileged(AccessController.java:96)
at java.util.TimeZone.defaultZone(TimeZone.java:100)
at java.util.TimeZone.getDefault(TimeZone.java:1530)
at q.main(q.java:7)