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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Future Project
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: