-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
x86
-
windows_2000
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)
======================================================================
- duplicates
-
JDK-4304287 Swing components should require the use of Collections and not Vectors
-
- Open
-