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

API: GregorianCalendar.isLeapYear() returns a wrong value on BC 1 and AD 4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs

      The GregorianCalendar.isLeapYear() returns true if AD 0 (==BC 1) or AD 4 is given. But both are non-leap years.

      Also, the API doc must clarify that the parameter `year' is assumed to be in AD.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: