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

Java2's Hashtable.equals() an undocumented incompatibility with 1.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.2
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2.2
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: gsC80088 Date: 02/11/99


      As of Java2 Hashtable overrides the equals(Object) method (as
      required by the Map interface). Not only have the semantics
      changed but the new method is synchronized which can easily
      cause deadlocks in code that used to be thread-safe. I imagine
      that this will stay the way it is, but you should at least
      document it as one of the known incompatabilities at
      http://java.sun.com/products/jdk/1.2/compatibility.html. (There's
      some discusson of the changes in the Hashtable and Vector equals
      methods but none of the synchronization problem.
      (Review ID: 53568)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            asommere Alan Sommerer (Inactive)
            Reporter:
            gstone Greg Stone
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: