Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333272

Summary: Prevent illegal subclassing of widgets in RAP
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: ruediger.herrmann
Version: 1.4   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ralf Sternberg CLA 2010-12-28 11:55:54 EST
SWT Widgets prevent illegal subclassing by means of the Widget#checkSubclass() method. This method is not effective in RAP due to historical reasons (Some illegal subclassing was unavoidable in the early days). From my point of view, we can and should now implement this mechanism properly.

To be revised:
* Display#isValidClass()
* Widget#checkSubclass() overrides in subclasses