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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 6
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: