Commit 9817ad77 by Michael Smith Committed by Tom Tromey

re PR libgcj/6045 (GregorianCalendar: getMinimum() and getMaximum() incorrect for month)

2002-03-23  Michael Smith  <msmith@spinnakernet.com>

	* java/util/GregorianCalendar.java (minimums, maximums): Correct
	MONTH entry.  Fixes PR libgcj/6045.

From-SVN: r51232
parent a641514d
2002-03-23 Michael Smith <msmith@spinnakernet.com>
* java/util/GregorianCalendar.java (minimums, maximums): Correct
MONTH entry. Fixes PR libgcj/6045.
2002-03-23 Jeff Sturm <jsturm@one-point.com> 2002-03-23 Jeff Sturm <jsturm@one-point.com>
* java/nat/natPlainSocketImpl.cc (write): Abort loop on error. * java/nat/natPlainSocketImpl.cc (write): Abort loop on error.
......
/* java.util.GregorianCalendar /* java.util.GregorianCalendar
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -917,11 +917,11 @@ public class GregorianCalendar extends Calendar ...@@ -917,11 +917,11 @@ public class GregorianCalendar extends Calendar
} }
private static final int[] minimums = private static final int[] minimums =
{ BC, 1, 1, 0, 1, 1, 1, SUNDAY, 1, { BC, 1, 0, 0, 1, 1, 1, SUNDAY, 1,
AM, 1, 0, 1, 1, 1, -(12*60*60*1000), 0 }; AM, 1, 0, 1, 1, 1, -(12*60*60*1000), 0 };
private static final int[] maximums = private static final int[] maximums =
{ AD, 5000000, 12, 53, 5, 31, 366, SATURDAY, 5, { AD, 5000000, 11, 53, 5, 31, 366, SATURDAY, 5,
PM, 12, 23, 59, 59, 999, +(12*60*60*1000), (12*60*60*1000) }; PM, 12, 23, 59, 59, 999, +(12*60*60*1000), (12*60*60*1000) };
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment