Skip to content

Drop dead log(Exception) helper in WorkbenchActivitySupport#3935

Merged
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:delete-unused-log-method
Apr 24, 2026
Merged

Drop dead log(Exception) helper in WorkbenchActivitySupport#3935
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:delete-unused-log-method

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 24, 2026

The private log(Exception) helper built an IStatus and immediately discarded it, never actually logging anything. It has been broken since it was introduced in 2004. Inline the exception swallow at the single call site with a comment explaining why the interrupt flag is not re-set (per @tomaswolf, ModalContext.run uses InterruptedException to signal cancellation, not actual thread interruption).

Fixes #3915

The private log(Exception) method built an IStatus and discarded it, never
actually logging anything. It has been broken since it was introduced in
2004. The only caller swallows InvocationTargetException and
InterruptedException from ProgressMonitorDialog.run(); inline that swallow
with a comment explaining why the interrupt flag is not re-set
(ModalContext.run uses InterruptedException to signal cancellation, not
actual thread interruption).

Fixes eclipse-platform#3915
@github-actions
Copy link
Copy Markdown
Contributor

Test Results

   852 files  ±0     852 suites  ±0   50m 57s ⏱️ +7s
 7 913 tests ±0   7 670 ✅ +1  243 💤 ±0  0 ❌  - 1 
20 241 runs  ±0  19 586 ✅ +1  655 💤 ±0  0 ❌  - 1 

Results for commit 2904268. ± Comparison against base commit b2f2d9b.

@vogella vogella requested a review from tomaswolf April 24, 2026 12:07
@vogella vogella merged commit dd4b23d into eclipse-platform:master Apr 24, 2026
18 checks passed
@vogella vogella deleted the delete-unused-log-method branch April 24, 2026 16:26
@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 24, 2026

Thanks @tomaswolf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WorkbenchActivitySupport.log(Exception) has never actually logged — 22-year-old bug

2 participants