commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] [bugs #11690] java.util.Calendar fails to set month and day


From: Andrew John Hughes
Subject: [commit-cp] [bugs #11690] java.util.Calendar fails to set month and day of week
Date: Sat, 22 Jan 2005 00:54:41 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Epiphany/1.0.8

This is an automated notification sent by Savannah.
It relates to:
                bugs #11690, project classpath

==============================================================================
 OVERVIEW of bugs #11690:
==============================================================================

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11690>

                 Summary: java.util.Calendar fails to set month and day of
week
                 Project: classpath
            Submitted by: gnu_andrew
            Submitted on: Sat 01/22/2005 at 00:54
                Category: classpath
                Severity: 5 - Average
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________


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.









    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 01/22/2005 at 00:54  Name: TestCal.java  Size: 882B   By:
gnu_andrew

<http://savannah.gnu.org/bugs/download.php?item_id=11690&item_file_id=2095>

==============================================================================

This item URL is:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11690>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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