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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description



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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: