You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/03/06 15:33:32 UTC

[jira] [Commented] (CAMEL-10951) Invalid default field values in Spring Boot ComponentConfiguration classes

    [ https://issues.apache.org/jira/browse/CAMEL-10951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15897514#comment-15897514 ] 

Claus Ibsen commented on CAMEL-10951:
-------------------------------------

Ah yeah then we need to grab the field value it represent. We do have some code that does this in the camel-route-parser

> Invalid default field values in Spring Boot ComponentConfiguration classes
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-10951
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10951
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.19.0
>            Reporter: James Netherton
>            Assignee: Nicola Ferraro
>
> Some components default their endpoint configuration using constant fields. For example, the camel-mail {{MailConfiguration}} class has:
> {code}
> private String from = MailConstants.MAIL_DEFAULT_FROM;
> {code}
> When the MailComponentConfiguration is generated, it has a field defaulted as follows:
> {code}
> private String from = "MailConstants.MAIL_DEFAULT_FROM";
> {code}
> Not sure exactly how many components are impacted by this but there's a few listed if you do:
> {code}
> grep "DEFAULT" $(find . -name "*ComponentConfiguration.java")
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)