Claus Ibsen created CAMEL-24204:
-----------------------------------

             Summary: camel-jms - exposeListenerSession catalog metadata 
reports wrong default value (false instead of true)
                 Key: CAMEL-24204
                 URL: https://issues.apache.org/jira/browse/CAMEL-24204
             Project: Camel
          Issue Type: Bug
          Components: camel-jms
            Reporter: Claus Ibsen


The {{@UriParam}} annotation on {{JmsConfiguration.exposeListenerSession}} is 
missing {{defaultValue = "true"}}. The Java field initializer is {{true}} (and 
has been since 2007), and Spring's {{AbstractMessageListenerContainer}} also 
defaults to {{true}}, but the generated catalog metadata ({{jms.json}}) reports 
{{"defaultValue": false}}.

This causes the Camel documentation website and any tooling reading the catalog 
JSON to show the wrong default value.

*Fix:* Add {{defaultValue = "true"}} to the {{@UriParam}} annotation at 
{{JmsConfiguration.java:140}}, matching the pattern used by all other 
{{true}}-default booleans in the same class (e.g., {{autoStartup}}, 
{{deliveryPersistent}}, {{mapJmsMessage}}).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to