(spec) java.text.DateField.getCalenderField inconsistent with constructor

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 6
    • Component/s: core-libs

      The specification of java.text.DateField.getCalenderField strongly
      limits the "calendarField" value to -1 or a valid calendar field.

      However, the constructor for DateField, specifically allows any
      value to be supplied. There is mention that -1 "should" be used
      for non-valid calendar fields but it is non-binding.

      The apparent contradiction was found when developing new TCK tests.
      See CR 7009205 for details.

            Assignee:
            Masayoshi Okutsu
            Reporter:
            Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: