Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6191841

(cal) API: Calendar.roll spec should clarify DAY_OF_WEEK behavior

    XMLWordPrintable

Details

    • Bug
    • Resolution: Future Project
    • P4
    • None
    • 5.0
    • core-libs
    • None

    Description

      The roll spec in the Calendar class has the following rule:

      Roll rule. Larger fields are unchanged after the call. A larger field represents a larger unit of time. DAY_OF_MONTH is a larger field than HOUR.

      However, the roll implementation in the GregorianCalendar class changes the larger fields when the DAY_OF_WEEK field is specified. That is, the ERA, YEAR and MONTH fields should not be changed by rolling with the DAY_OF_WEEK field. But it's too late to change the roll behavior.

      The roll rule should be change to be consistent with the DAY_OF_WEEK roll implementation.
      ###@###.### 2004-11-06 01:50:51 GMT

      Attachments

        Issue Links

          Activity

            People

              okutsu Masayoshi Okutsu
              okutsu Masayoshi Okutsu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: