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

(coll) Deprecate Vector and Hashtable

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: