United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4687379 RFE: JList.setListData should use java.util.List not java.util.Vector
JDK-4687379 : RFE: JList.setListData should use java.util.List not java.util.Vector

Details
Type:
Enhancement
Submit Date:
2002-05-17
Status:
Closed
Updated Date:
2002-05-17
Project Name:
JDK
Resolved Date:
2002-05-17
Component:
client-libs
OS:
windows_2000
Sub-Component:
javax.swing
CPU:
x86
Priority:
P4
Resolution:
Duplicate
Affected Versions:
1.4.0
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

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
                                     
2002-05-17



Hardware and Software, Engineered to Work Together