JDK-4687379 : RFE: JList.setListData should use java.util.List not java.util.Vector
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-05-17
  • Updated: 2002-05-17
  • Resolved: 2002-05-17
Related Reports
Duplicate :  
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) 
======================================================================

Comments
EVALUATION This will be done as part of 4304287 ###@###.### 2002-05-17
17-05-2002