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 2018/09/04 15:04:07 UTC

[jira] [Resolved] (CAMEL-12756) `@ConditionalOnProperty` target property with no metadata

     [ https://issues.apache.org/jira/browse/CAMEL-12756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-12756.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.22.2

The name of the property to use dash has been fixed in 2.22.2 as well. And from 2.23 they all have metadata and descriptions.

> `@ConditionalOnProperty` target property with no metadata
> ---------------------------------------------------------
>
>                 Key: CAMEL-12756
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12756
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring-boot
>    Affects Versions: 2.22.0
>            Reporter: Stephane Nicoll
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 2.22.2, 2.23.0
>
>
>  Several auto-configurations use a condition on a property that has no metadata. As a result, trying to use it to customize the auto-configuration lead to a warning in an IDE.
> The report detected the following:
>  
> {noformat}
> org.apache.camel.model.rest.springboot.RestConfigurationDefinitionAutoConfiguration [camel.rest.enabled]
> org.apache.camel.spring.boot.TypeConversionConfiguration [camel.springboot.typeConversion]
> {noformat}
> For the latter, the property in {{@ConditionalOnProperty}} must use the canonical format (i.e. must be {{camel.springboot.type-conversion}})



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)