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

RFE: JList.setListData should use java.util.List not java.util.Vector

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs



      Name: jk109818 Date: 05/17/2002


      FULL PRODUCT VERSION :
      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)


      A DESCRIPTION OF THE PROBLEM :
      The javax.swing.JList.setListData method is overloaded to
      accept a java.lang.Object[] or a java.util.Vector.

      In Java 1.2, the collections were redesigned. The interface
      java.util.List was created. Many developers (myself
      included) started using Vector less, in favour of the List
      interface and alternate implementations thereof.

      But I find that setListData API still requires a Vector. It
      should be deprecated, and another overload accepting a List
      should be added.

      This bug can be reproduced always.
      (Review ID: 146624)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: