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

acosentino 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 dd302ce954f3 Camel Doc Kamelet: Fix getDefault and getEnum method 
invocation, now called get_default and get_enum (#19888)
dd302ce954f3 is described below

commit dd302ce954f3d3c4885e5acf22ee7128656c6b08
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Nov 11 15:10:30 2025 +0100

    Camel Doc Kamelet: Fix getDefault and getEnum method invocation, now called 
get_default and get_enum (#19888)
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../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) {

Reply via email to