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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.2
    • 1.2.0
    • docs
    • 1.2.2
    • generic
    • generic



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: