Bug 553049 - Image constructors do not check for UI thread - bug or feature?
Summary: Image constructors do not check for UI thread - bug or feature?
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.8.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-14 07:40 EST by Andrey Loskutov CLA
Modified: 2021-11-17 12:55 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 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.