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

DefaultTableModel.setColumnIdentifiers(columnNames) fails when count+1 new cols

    XMLWordPrintable

Details

    • merlin
    • sparc
    • solaris_2.6

    Description

      Bug in setColumnIdentifiers(columnNames) where columnNames.size() is greater than original columnCount. What happens is we assign newColumnNames to oldColumnNames without setting the ColumnCount size. Without setting the new columncount before displaying causes us to make a reference to a nothing value
      assigned to the new column. This in turn causes a ArrayIndoexOutOfBoundsException to be thrown when getValueAt(0,newColumn).
      Talked with milne@eng about this. He said that he would fix this one.

      Attachments

        Activity

          People

            pmilnesunw Philip Milne (Inactive)
            collins Gary Collins (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: