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

Vector deprecated effects

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Incomplete
    • Icon: P4 P4
    • 8-pool
    • 7
    • client-libs

      A DESCRIPTION OF THE REQUEST :
      As we all know Vector has been deprecated. The problem is that there is no suitable substitute yet. My particular problem is that the default models (DefaultTableModel, DefaultComboBoxModel, DefaultListModel) cannot be instantiated with anything other than an Object[] [] or Vector. I am under the impression that ArrayList is the logical replacement. In that event the models need to be refactored to have a constructor for ArrayList or possibly a Collection if it can be made so broad. Until that is done Vector should not be deprecated. It will take hundreds of hours for me to replace all the Vector objects in my projects; and to write code I still have to use Vectors due to the missing constructors for the default models.

      JUSTIFICATION :
      See description. The JDK is in conflict with itself.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      new DefaultTableModel(ArrayList data, ArrayList columnNames);
      OR
      new DefaultTableModel(Collection data, Collection columnNames);
      ACTUAL -
      New constructors for default models is missing from JDK but currently supported constructor requires deprecated object.

      ---------- BEGIN SOURCE ----------
      see expected behavior
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      No workaround is available at this time

            rupashka Pavel Porvatov (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: