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 1e5556cd8955 chore: camel-jbang - fix the compilation of RouteAssist 
on main (#27178)
1e5556cd8955 is described below

commit 1e5556cd895559e53af136e90429233a77a2825c
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Oct 1 09:36:24 2026 +0200

    chore: camel-jbang - fix the compilation of RouteAssist on main (#27178)
    
    PR #27147 (CAMEL-25199) gave EndpointConsumerChecks.consumed a catalog 
argument and PR #27172 (CAMEL-25208) called it with the two arguments it had 
before; each built on its own, merged together main does not compile in 
camel-jbang-core. RouteAssist passes the catalog it has.
    
    Signed-off-by: Claus Ibsen <[email protected]>
    Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
---
 .../java/org/apache/camel/dsl/jbang/core/commands/ai/RouteAssist.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/RouteAssist.java
 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/RouteAssist.java
index 06a1d1a0944a..50dde0abb4bd 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/RouteAssist.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/RouteAssist.java
@@ -112,7 +112,7 @@ public final class RouteAssist {
         }
         List<RouteNodes.Node> nodes = 
RouteNodes.withExpressionLines(RouteNodes.of(model, catalog), content);
         Set<String> consumed = checkConsumers && directory != null
-                ? EndpointConsumerChecks.consumed(directory, fileName) : null;
+                ? EndpointConsumerChecks.consumed(directory, fileName, 
catalog) : null;
         for (String msg : ModelChecks.check(model, nodes, content, catalog, 
consumed)) {
             answer.add(parse(msg, Severity.ERROR));
         }

Reply via email to