Bug 553049

Summary: Image constructors do not check for UI thread - bug or feature?
Product: [Eclipse Project] Platform Reporter: Andrey Loskutov <loskutov>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.8.2   
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=553044
Whiteboard: stalebug

Description Andrey Loskutov CLA 2019-11-14 07:40:43 EST
See bug 553044 comment 2.

As of today it is possible that client code can create Image instances from NON-UI thread.

This is a real surprise for me, as SWT was always single-threaded.

WHY don't we don't check for UI thread as usually (and throw an error) for Image constructors? I also see similar code for Windows port.

Is this on purpose, to allow "offscreen" Image manipulations? I also see similar pattern in all classes inside org.eclipse.swt.graphics package.
Comment 1 Eclipse Genie CLA 2021-11-17 12:55:30 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.