(cal) API: add() and roll() methods throws IllegalArgumentException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 1.4.0
    • Component/s: core-libs
    • None
    • Fix Understood
    • b20
    • generic
    • generic

      The add and roll methods in GregorianCalendar calls complete() before performing the operation. It may throw IllegalArgumentException if it's non-lenient and has any out of range calendar field value. This behavior must be documented in Calendar.

      ###@###.### 2002-09-04

            Assignee:
            Justin Lu
            Reporter:
            Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: