Skip to content

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

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:synchronized-visitor-no-stacktrace
Open

Do not fill in a stack trace for ResourceChangedException#2885
vogella wants to merge 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.

The exception is only a control-flow signal, and its single catch site
reads just the target resource.
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   59m 59s ⏱️ + 2m 1s
 4 761 tests ±0   4 739 ✅ ±0   22 💤 ±0  0 ❌ ±0 
12 174 runs  ±0  12 021 ✅ ±0  153 💤 ±0  0 ❌ ±0 

Results for commit 3d2777e. ± Comparison against base commit 2fa8a80.

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.

1 participant