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

(coll) Deprecate Vector and Hashtable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6
    • core-libs

      A DESCRIPTION OF THE REQUEST :
      Deprecate Vector and Hashtable and javadoc them to direct developers to use ArrayList (or another List implementation) and HashMap (and to use Collection.synchronizedList & Collection.synchronizedMap where necessary).

      JUSTIFICATION :
      It is preferred by most developers that ArrayList is used in preference to Vector, and that HashMap is used in preference to Hashtable.
      The main reason developers have this preference is because of speed.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The older collection objects cease to be used.

            martin Martin Buchholz
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: