deepaktaker commented on PR #21422:
URL: https://github.com/apache/camel/pull/21422#issuecomment-3890179452

   > booleans should not be in quotes, you dont do that in java.
   
   Thanks for the feedback! I understand the concern, but this isn't about 
intentionally quoting booleans in Java code.
   
   The issue comes up in Camel Spring XML DSL when defining bean constructors:
   
   <camel:constructor index="0" value="false"/>
   
   XML attributes are inherently strings, so the parser passes "false" to 
PropertyBindingSupport. Without this fix, the method returns String.class 
instead of Boolean.class, and factory method resolution fails.
   
   We hit this in production - the only workaround was to patch this method. 
Same situation would apply to YAML DSL or properties-based configuration where 
values come in as strings.
   
   Happy to discuss further if needed!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to