bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22846] java.util.Calendar fails to set month and day of w


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22846] java.util.Calendar fails to set month and day of week
Date: 16 Oct 2005 01:27:26 -0000

The Calendar class appears to ignore calls to set which change the day of the
week and/or the month to be used.  The remaining eight failing
java.text.SimpleDateFormat parse test cases (0 to 4 and 17 to 20) illustrate
this.

The first tries to set Dec 1978, but the calendar only changes the year to
1978.  The same is true of the next two, where the calendar ignores the August
month setting.

The fourth is a more strange case, where the day of the week, the month and the
year are set (in that order).  This should use a pattern containing all these
values, with a default week of the month of 1.  The expected result is the
first Saturday in November, 2004.  But, as in all the above, only the year is
actually set.

The last four all test with the same values (it is the parsing process that
differs).  They try to set the first Saturday in June.  They fail as above. 
Solving just this would fix four test cases.

A stripped-down version is provided below.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2005-02-02 
21:45 -------
I believe this is fixed now. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22846





reply via email to

[Prev in Thread] Current Thread [Next in Thread]