Project: SWT
Bug 66392 IllegalArgumentException in Table
Reported: 2004-06-09 15:35:02 | Status: resolved fixed

06081200 build Run the attached snippet and will get the exception below: Exception in thread "main" java.lang.IllegalArgumentException: Index out of bounds at org.eclipse.swt.SWT.error(SWT.java:2677) at org.eclipse.swt.SWT.error(SWT.java:2616) at org.eclipse.swt.SWT.error(SWT.java:2587) at org.eclipse.swt.widgets.Widget.error(Widget.java:334) at org.eclipse.swt.widgets.Table.internalGetColumn(Table.java:1624) at org.eclipse.swt.widgets.TableItem.getAlignmentOffset(TableItem.java:273) at org.eclipse.swt.widgets.TableItem.drawText(TableItem.java:266) at org.eclipse.swt.widgets.TableItem.paint(TableItem.java:1124) at org.eclipse.swt.widgets.Table.paintSubItem(Table.java:1936) at org.eclipse.swt.widgets.Table.paintItems(Table.java:1903) at org.eclipse.swt.widgets.Table.paint(Table.java:1834) at org.eclipse.swt.widgets.Table.handleEvents(Table.java:1437) at org.eclipse.swt.widgets.SelectableItemWidget$2.handleEvent(SelectableItemWidget.java:1199) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:731) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:752) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:738) at org.eclipse.swt.widgets.Composite.XExposure(Composite.java:882) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:906) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3478) at org.eclipse.swt.internal.motif.OS.XtDispatchEvent(Native Method) at org.eclipse.swt.widgets.Control.update(Control.java:2844) at org.eclipse.swt.widgets.Control.update(Control.java:2829) at org.eclipse.swt.widgets.SelectableItemWidget.scroll(SelectableItemWidget.java:1580) at org.eclipse.swt.widgets.Table.columnChange(Table.java:371) at org.eclipse.swt.widgets.TableColumn.setBounds(TableColumn.java:434) at org.eclipse.swt.widgets.TableColumn.setWidth(TableColumn.java:515) at org.eclipse.swt.widgets.Table.setFirstColumnWidth(Table.java:2596) at org.eclipse.swt.widgets.Table.itemChanged(Table.java:1739) at org.eclipse.swt.widgets.TableItem.notifyImageChanged(TableItem.java:1045) at org.eclipse.swt.widgets.TableItem.internalSetImage(TableItem.java:969) at org.eclipse.swt.widgets.TableItem.setImage(TableItem.java:1390) at org.eclipse.swt.widgets.TableItem.removeColumn(TableItem.java:1147) at org.eclipse.swt.widgets.Table.removeColumnData(Table.java:2173) at org.eclipse.swt.widgets.Table.removeColumn(Table.java:2115) at org.eclipse.swt.widgets.TableColumn.disposeColumn(TableColumn.java:236) at org.eclipse.swt.widgets.TableColumn$1.handleEvent(TableColumn.java:134) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:731) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:752) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:735) at org.eclipse.swt.widgets.Widget.releaseWidget(Widget.java:607) at org.eclipse.swt.widgets.Item.releaseWidget(Item.java:139) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:326) at Main$1.run(Main.java:61) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.syncExec(Display.java:3319) at Main.main(Main.java:52)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java