Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.18.2
-
None
-
Unknown
Description
Some components default their endpoint configuration using constant fields. For example, the camel-mail MailConfiguration class has:
private String from = MailConstants.MAIL_DEFAULT_FROM;
When the MailComponentConfiguration is generated, it has a field defaulted as follows:
private String from = "MailConstants.MAIL_DEFAULT_FROM";
Not sure exactly how many components are impacted by this but there's a few listed if you do:
grep "DEFAULT" $(find . -name "*ComponentConfiguration.java")