You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2025/11/11 13:38:31 UTC

(camel) branch kamelets-doc created (now c2a10ea7f449)

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

acosentino pushed a change to branch kamelets-doc
in repository https://gitbox.apache.org/repos/asf/camel.git


      at c2a10ea7f449 Camel Doc Kamelet: Fix getDefault and getEnum method invocation, now called get_default and get_enum

This branch includes the following new commits:

     new c2a10ea7f449 Camel Doc Kamelet: Fix getDefault and getEnum method invocation, now called get_default and get_enum

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: Camel Doc Kamelet: Fix getDefault and getEnum method invocation, now called get_default and get_enum

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch kamelets-doc
in repository https://gitbox.apache.org/repos/asf/camel.git

commit c2a10ea7f449058c7b2b98e3198c9ecfaea1372a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Nov 11 14:37:27 2025 +0100

    Camel Doc Kamelet: Fix getDefault and getEnum method invocation, now called get_default and get_enum
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../camel/dsl/jbang/core/commands/catalog/KameletCatalogHelper.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/KameletCatalogHelper.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/KameletCatalogHelper.java
index 3e6aa4763f7b..ad6ca54546a4 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/KameletCatalogHelper.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/KameletCatalogHelper.java
@@ -110,7 +110,7 @@ public final class KameletCatalogHelper {
     }
 
     private static String getPropertyDefaultValue(Object prop) throws Exception {
-        Method m = prop.getClass().getMethod("getDefault");
+        Method m = prop.getClass().getMethod("get_default");
         Object dn = ObjectHelper.invokeMethod(m, prop);
         if (dn != null) {
             String t = dn.toString();
@@ -121,7 +121,7 @@ public final class KameletCatalogHelper {
 
     private static List<String> getPropertyEnum(Object prop) throws Exception {
         List<String> answer = new ArrayList<>();
-        Method m = prop.getClass().getMethod("getEnum");
+        Method m = prop.getClass().getMethod("get_enum");
         List<Object> list = (List<Object>) ObjectHelper.invokeMethod(m, prop);
         if (list != null && !list.isEmpty()) {
             for (var en : list) {