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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: