This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 693b6d5ac371 CAMEL-24851: drop the no-op ignore-event setters in 
ReloadFailureNotifier; a comment says why ignoreRouteEvents stays at its default
693b6d5ac371 is described below

commit 693b6d5ac371428094d7bc5fd8d645db35fd147d
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Sep 20 21:28:31 2026 +0200

    CAMEL-24851: drop the no-op ignore-event setters in ReloadFailureNotifier; 
a comment says why ignoreRouteEvents stays at its default
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../camel/dsl/jbang/core/commands/ai/YamlLoadFailureReport.java      | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/YamlLoadFailureReport.java
 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/YamlLoadFailureReport.java
index f7a8c96bb53b..5b50aa0f322d 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/YamlLoadFailureReport.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/YamlLoadFailureReport.java
@@ -166,11 +166,10 @@ public final class YamlLoadFailureReport {
 
         public ReloadFailureNotifier(Consumer<String> printer) {
             this.printer = printer;
-            setIgnoreCamelContextEvents(false);
             setIgnoreExchangeEvents(true);
-            // the reload events are dispatched under the route events flag: 
it must stay off
-            setIgnoreRouteEvents(false);
             setIgnoreServiceEvents(true);
+            // EventHelper.notifyContextReloadFailure skips notifiers where 
isIgnoreRouteEvents() is true;
+            // leave ignoreRouteEvents at its default (false) so 
CamelContextReloadFailureEvent reaches us.
         }
 
         @Override

Reply via email to