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

(coll spec) Bug in documentation for WeakHashMap

XMLWordPrintable

    • b25
    • x86
    • windows_xp
    • Not verified



      Name: gm110360 Date: 07/29/2004


      A DESCRIPTION OF THE PROBLEM :
      The documenation states 'A hashtable-based Map implementation with weak keys'

      This indicates that the WeakHashMap shares synchronization semantics with HashTable. If one reads on in the documentation it clearly states that the WeakHashMap isn't synchronized..

      It would be clearer if the documentation stated 'A hashmap-based Map implementation with weak keys'

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A hashmap-based Map implementation with weak keys
      ACTUAL -
      A hashtable-based Map implementation with weak keys

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/java/util/WeakHashMap.html
      (Incident Review ID: 290300)
      ======================================================================

            martin Martin Buchholz
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: