Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332426 - Event.data not added in typed events' constructors
Summary: Event.data not added in typed events' constructors
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-13 06:34 EST by Ralf Sternberg CLA
Modified: 2010-12-13 08:36 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Sternberg CLA 2010-12-13 06:34:31 EST
Reproduce:
Event event	= new Event();
event.data = ...
notifyListeners( SWT.MouseDown, event );

Typed listeners will get null event.data. See also bug 331082 (fixed for SelectionEvent). This issue seems to exist for other typed events as well. I think the correct solution is to call super( Event ) in the ( Event )-constructors of all typed events.
Comment 1 Ivan Furnadjiev CLA 2010-12-13 08:36:45 EST
Fixed in CVS HEAD.