summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-07-30 20:44:11 +0000
committerMark Wielaard <mark@klomp.org>2006-07-30 20:44:11 +0000
commita553c6bdb6e6ccd2a26380d8dc0837986bd7d272 (patch)
treeea262314eca1978d619b2b886713efcce51c1f24 /java
parent836d9c59074952119dc0a6f44ee0f6ad2d79d98d (diff)
downloadclasspath-a553c6bdb6e6ccd2a26380d8dc0837986bd7d272.tar.gz
* java/util/GregorianCalendar.java (maximums): Months can have up to
6 weeks. (nonLeniencyCheck): weeks is either 5 or 6.
Diffstat (limited to 'java')
-rw-r--r--java/util/GregorianCalendar.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/util/GregorianCalendar.java b/java/util/GregorianCalendar.java
index 85a9f1247..4a66d6e08 100644
--- a/java/util/GregorianCalendar.java
+++ b/java/util/GregorianCalendar.java
@@ -445,7 +445,7 @@ public class GregorianCalendar extends Calendar
if (isSet[WEEK_OF_MONTH])
{
- int weeks = (month == 1 && leap == 0) ? 4 : 5;
+ int weeks = (month == 1 && leap == 0) ? 5 : 6;
if (fields[WEEK_OF_MONTH] < 1 || fields[WEEK_OF_MONTH] > weeks)
throw new IllegalArgumentException("Illegal WEEK_OF_MONTH.");
}
@@ -1163,7 +1163,7 @@ public class GregorianCalendar extends Calendar
*/
private static final int[] maximums =
{
- AD, 5000000, 11, 53, 5, 31, 366,
+ AD, 5000000, 11, 53, 6, 31, 366,
SATURDAY, 5, PM, 12, 23, 59, 59, 999,
+(12 * 60 * 60 * 1000),
(12 * 60 * 60 * 1000)