The spec for is
"protected DateFormat.Field(String name,
int calendarField)
Creates a Field with the specified name. calendarField is used to identify the Calendar field this attribute represents. Use -1 if this field does not have a corresponding Calendar value."
The behaviour of constructor is undefined when calendarField is not from
range -1 .. Calendar.FIELD_COUNT (not legal calendar field and not -1).
"protected DateFormat.Field(String name,
int calendarField)
Creates a Field with the specified name. calendarField is used to identify the Calendar field this attribute represents. Use -1 if this field does not have a corresponding Calendar value."
The behaviour of constructor is undefined when calendarField is not from
range -1 .. Calendar.FIELD_COUNT (not legal calendar field and not -1).
- relates to
-
JDK-7061097 [Doc] Inconsistenency between the spec and the implementation for DateFormat.Field
-
- Resolved
-