Skip to main content

JDK feedback

No replies
yakridge
Offline
Joined: 2011-07-09
Points: 0

The Vector class has been deprecated for some time now but there is no suitable substitute yet.

By no suitable substitute, I mean that the default models (i.e. DefaultTableModel, DefaultComboBoxModel) still require a Vector. If the Vector class is going away then the default models need to be updated to include constructors that take a Collection object so that they can be instantiated by passing an ArrayList (or other Collection) to the constructors. It is immaterial to me whether the constructor then takes the Collection and extracts the array or what; but until the default models are modified I am dependant upon the Vector class even for new code using JDK 7 according to the JDK 7 documentation which checked a few minutes ago.

Otherwise, the Vector needs to be undeprecated!!