[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: time zone fix
Kaffe CVS
cvs-commits at kaffe.org
Sat Feb 19 09:00:47 PST 2005
PatchSet 5570
Date: 2005/02/19 16:55:26
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Resynced with GNU Classpath: time zone fix
2005-02-19 Dalibor Topic <robilad at kaffe.org>
Resynced with GNU Classpath.
2005-02-17 Mark Wielaard <mark at klomp.org>
* java/util/SimpleTimeZone.java (checkRule): Throw
IllegalArgumentException when month out of range.
Members:
ChangeLog:1.3614->1.3615
libraries/javalib/java/util/SimpleTimeZone.java:1.23->1.24
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3614 kaffe/ChangeLog:1.3615
--- kaffe/ChangeLog:1.3614 Sat Feb 19 16:48:54 2005
+++ kaffe/ChangeLog Sat Feb 19 16:55:26 2005
@@ -2,6 +2,15 @@
Resynced with GNU Classpath.
+ 2005-02-17 Mark Wielaard <mark at klomp.org>
+
+ * java/util/SimpleTimeZone.java (checkRule): Throw
+ IllegalArgumentException when month out of range.
+
+2005-02-19 Dalibor Topic <robilad at kaffe.org>
+
+ Resynced with GNU Classpath.
+
2005-02-17 Sven de Marothy <sven at physto.se>
* java/util/GregorianCalendar.java,
Index: kaffe/libraries/javalib/java/util/SimpleTimeZone.java
diff -u kaffe/libraries/javalib/java/util/SimpleTimeZone.java:1.23 kaffe/libraries/javalib/java/util/SimpleTimeZone.java:1.24
--- kaffe/libraries/javalib/java/util/SimpleTimeZone.java:1.23 Sat Feb 19 15:23:38 2005
+++ kaffe/libraries/javalib/java/util/SimpleTimeZone.java Sat Feb 19 16:55:29 2005
@@ -425,6 +425,9 @@
*/
private int checkRule(int month, int day, int dayOfWeek)
{
+ if (month < 0 || month > 11)
+ throw new IllegalArgumentException("month out of range");
+
int daysInMonth = getDaysInMonth(month, 1);
if (dayOfWeek == 0)
{
More information about the kaffe
mailing list