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

DefaultTableModel.getColumnName(int column) throws ArrayIndexOutOfBoundsException for column < 0.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • client-libs
    • b24
    • generic
    • generic
    • Verified

      DefaultTableModel.getColumnName(int column) throws ArrayIndexOutOfBoundsException for column < 0.
      By spec of DefaultTableModel:
        If columnIdentifiers does not have an entry for this index, returns the default name provided by the superclass.
      And from AbstractTableModel.getColumnName(int column) description we have the following:
        If column cannot be found, returns an empty string.

      So this method should return an empty string in this case without exceptions. This bug in RI should be fixed.
      ###@###.### 2005-1-11 14:00:03 GMT

            kwalrathsunw Kathy Walrath (Inactive)
            aglasman Alexander Glasman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: