| Summary: | Double checked locking in WorkbenchErrorHandler | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Ralf Sternberg <rsternberg> |
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | krzysztof.daniel, remy.suen |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Ralf Sternberg
The pattern is considered broken only for multithreaded apps. WorkbenchErrorHandler#handle ensures that all private methods are called only from UI thread, therefore partial initialization of statusDialogManager field will not happen. Feel free to reopen if I am wrong. (In reply to comment #1) > The pattern is considered broken only for multithreaded apps. > WorkbenchErrorHandler#handle ensures that all private methods are called only > from UI thread, therefore partial initialization of statusDialogManager field > will not happen. > > Feel free to reopen if I am wrong. Oh, I was not aware that this method is only called from the UIThread. But then, just out of curiosity: what's the use of this synchronized block at all given that the private field statusDialogManager is only accessed from this very method and therefore only from the UIThread? |