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

Bug 398980

Summary: Disposed widget should throw an SWTException if method getData(String) is called
Product: [RT] RAP Reporter: Dirk Stanke <dirk.stanke>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 2.2 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dirk Stanke CLA 2013-01-24 10:59:10 EST
If widget.isDisposed() == true, then calling widget.getData(String) should throw an org.eclipse.swt.SWTException (as in SWT, and consistent with calling widget.getData() without any paramater).
Comment 1 Ralf Sternberg CLA 2013-01-24 12:00:26 EST
This exception has been introduced to be able to obtain custom widget ids after a widget is disposed of. We should find a solution that does not break the contract of the SWT method.
Comment 2 Ivan Furnadjiev CLA 2013-06-20 05:53:04 EDT
(In reply to comment #1)
> This exception has been introduced to be able to obtain custom widget ids after
> a widget is disposed of. We should find a solution that does not break the
> contract of the SWT method.
Since RAP 1.5 this is not a case anymore (see bug 375246). Bring checkData() back in Widget#getData( String ).
Fixed in master with commit 0519b464411cf29bf4d01e72debcbc999b775461.