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

Bug 291718

Summary: [Display] verify that thread is valid in checkDevice
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: DemoAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.0   
Target Milestone: 1.3 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Rüdiger Herrmann CLA 2009-10-08 06:09:06 EDT
the current implementation of Display#checkDevice() does only check whether the Display is disposed. In additionit should be checked that the invoking thread is the UI thread.
e.g.
    if( thread != Thread.currentThread() ) {
      error( SWT.ERROR_THREAD_INVALID_ACCESS );
    }
Comment 1 Rüdiger Herrmann CLA 2009-10-08 06:14:37 EDT
Fixed in CVS HEAD