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
This commit is contained in:
parent
a641514dc5
commit
9817ad7792
2 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/* 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.
|
||||
|
||||
|
@ -917,11 +917,11 @@ public class GregorianCalendar extends Calendar
|
|||
}
|
||||
|
||||
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 };
|
||||
|
||||
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) };
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue