Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320838 - Virtual Table: SWT.SetData event does not contain valid TreeItems (index == -1)
Summary: Virtual Table: SWT.SetData event does not contain valid TreeItems (index == -1)
Status: CLOSED DUPLICATE of bug 472352
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-25 06:38 EDT by bandwerker CLA
Modified: 2018-04-13 15:20 EDT (History)
3 users (show)

See Also:


Attachments
Testcase that demonstrates the problem (2.53 KB, text/x-java)
2010-07-25 06:38 EDT, bandwerker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description bandwerker CLA 2010-07-25 06:38:49 EDT
Created attachment 175172 [details]
Testcase that demonstrates the problem

Snippet 144 shows how to use a virtual table. The snippet does not use columns, so I added some columns. Now, if that table is reloaded, SWT.SetData events are fired. In these events, my Listener finds 
event.index == -1 and
table.indexOf(item) == -1

This seems like a bug to me.


Please see the attached file for an example. The example contains a table that is populated with 200 items. Pushing the button crashes the application. 

The application does NOT crashe if columns are omitted. The application does NOT crash, if the number of items does not change or decreases.

version.txt from swt.jar says that I am using "version 3.650".
Comment 1 Eric Williams CLA 2018-04-13 15:20:46 EDT

*** This bug has been marked as a duplicate of bug 472352 ***