| Summary: | EHandlerService does not always return the correct result if called on a non UI Thread | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Thorsten Hake <thorsten.hake> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | pwebster |
| Version: | 4.3 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | stalebug | ||
|
Description
Thorsten Hake
It wasn't designed to be thread safe, as in 3.x it's supposed called from the UI thread. In addition, I'm not sure that this pattern can be made thread safe, as there's a couple of back and forth steps between the HandlerServiceImpl, the HandlerServiceHandler, and the actual invoked handler. PW Wouldn't it be sufficient to make the contextStack ThreadLocal? To not create a memory leak, one could dynamically remove the contextStack variable for a thread if the contextStack is empty. This of course leads to dynamic initialization. I will try to provide a patch if this way to fix it is accaptable. 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. If you have further information on the current state of the bug, please add it. 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. If the bug is still relevant, please remove the stalebug whiteboard tag. |