From 3d2777e70e7d212be8384310ea0198272183ab26 Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Wed, 26 Aug 2026 20:09:17 +0200 Subject: [PATCH] Do not fill in a stack trace for ResourceChangedException The exception is only a control-flow signal, and its single catch site reads just the target resource. --- .../core/internal/localstore/IsSynchronizedVisitor.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/IsSynchronizedVisitor.java b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/IsSynchronizedVisitor.java index 35937f991b9..34808f65c8d 100644 --- a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/IsSynchronizedVisitor.java +++ b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/IsSynchronizedVisitor.java @@ -33,6 +33,12 @@ static class ResourceChangedException extends RuntimeException { public ResourceChangedException(IResource target) { this.target = target; } + + @Override + public synchronized Throwable fillInStackTrace() { + // the stack trace is never used, see the class comment + return this; + } } /**