Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367414 - Table#getSelection() throws an AIOOBE
Summary: Table#getSelection() throws an AIOOBE
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.8   Edit
Hardware: PC Linux-GTK
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 07:20 EST by Paul Webster CLA
Modified: 2011-12-22 12:33 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Webster CLA 2011-12-22 07:20:56 EST
In tests in both 3.8 and 4,2 I'm seeing a lot of errors (example stack trace below).  It appears in UI tests, JDT tests, etc.  Possibly related to the fix for bug 367120.

java.lang.ArrayIndexOutOfBoundsException: -1944105504
	at org.eclipse.swt.widgets.Table._getItem(Table.java:150)
	at org.eclipse.swt.widgets.Table.getSelection(Table.java:1684)
	at org.eclipse.jface.viewers.TableViewer.doGetSelection(TableViewer.java:238)
	at org.eclipse.jface.viewers.AbstractTableViewer.getSelectionFromWidget(AbstractTableViewer.java:483)
	at org.eclipse.jface.viewers.StructuredViewer.getSelection(StructuredViewer.java:1045)
	at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1724)
	at org.eclipse.jface.viewers.TableViewer.setSelection(TableViewer.java:158)
	at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:394)
	at org.eclipse.jface.tests.viewers.StructuredViewerTest.testClearSelection(StructuredViewerTest.java:124)
Comment 1 Felipe Heidrich CLA 2011-12-22 10:20:47 EST
Grant, please investigate.
Comment 2 Grant Gayed CLA 2011-12-22 12:33:42 EST
Yes, this was introduced by the fix for bug 367120.  Fixed in master > 20111222, patch is in http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=1585ebb14115790898593946bf9938c97f5e76f5 .