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.
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.
- relates to
-
JDK-7021637 DataFormat.Field.getCalendarField() does not return -1
-
- Closed
-