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

Refine the spec of equals() and hashCode() for j.text.Format classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 6
    • core-libs
    • None
    • b18
    • generic
    • generic

      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.

            jlu Justin Lu
            xwangsunw Xiaozhong Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: