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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 6
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: