The specification of equals() and hashCode() methods should be refined for the following classes:
MessageFormat
ChoiceFormat
DecimalFormat + DecimalFormatSymbols
NumberFormat
DateFormat + DateFormatSymbols
SimpleDateFormat
The current specification either says "Equality comparison between two message format objects" or "Overrides equals", which does not contain the necessary information to implement the method. It should at least say what is compared.
MessageFormat
ChoiceFormat
DecimalFormat + DecimalFormatSymbols
NumberFormat
DateFormat + DateFormatSymbols
SimpleDateFormat
The current specification either says "Equality comparison between two message format objects" or "Overrides equals", which does not contain the necessary information to implement the method. It should at least say what is compared.
- csr for
-
JDK-8315720 Refine the spec of equals() and hashCode() for j.text.Format classes
-
- Closed
-
- duplicates
-
JDK-8195634 java.text.DecimalFormat equals and hashcode methods are under specified
-
- Closed
-
- relates to
-
JDK-8195634 java.text.DecimalFormat equals and hashcode methods are under specified
-
- Closed
-