Skip to content

Do not fill in a stack trace for ResourceChangedException - #2885

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:synchronized-visitor-no-stacktrace
Sep 1, 2026
Merged

Do not fill in a stack trace for ResourceChangedException#2885
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:synchronized-visitor-no-stacktrace

Conversation

@vogella

@vogella vogella commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

IsSynchronizedVisitor throws ResourceChangedException purely as a control-flow signal for the first out-of-sync node, and its only catch site in FileSystemResourceManager reads just the target resource. The class comment already states the stack trace is meaningless, so overriding fillInStackTrace avoids capturing one.

RefreshLocalTest and UnifiedTreeTest pass unchanged.

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   59m 50s ⏱️ +7s
 4 759 tests ±0   4 737 ✅ ±0   22 💤 ±0  0 ❌ ±0 
12 168 runs  ±0  12 015 ✅ ±0  153 💤 ±0  0 ❌ ±0 

Results for commit 6ab0d92. ± Comparison against base commit 06b395f.

♻️ This comment has been updated with latest results.

@vogella
vogella force-pushed the synchronized-visitor-no-stacktrace branch from 3d2777e to 59e9529 Compare August 31, 2026 15:38
The exception is only a control-flow signal, and its single catch site
reads just the target resource.
@vogella
vogella force-pushed the synchronized-visitor-no-stacktrace branch from 59e9529 to 6ab0d92 Compare September 1, 2026 07:33
@vogella
vogella requested a balanced review from Copilot September 1, 2026 07:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Avoids unnecessary stack-trace capture for an internal control-flow exception.

Changes:

  • Overrides fillInStackTrace() to return the exception directly.
  • Preserves existing target-resource handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vogella
vogella merged commit c4e2858 into eclipse-platform:master Sep 1, 2026
18 checks passed
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.

2 participants