[
https://issues.apache.org/jira/browse/CAMEL-21271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-21271:
--------------------------------
Summary: camel-jbang - Export @PropertyInject should support ENV variables
(was: camel-core - @PropertyInject should support ENV variables)
> camel-jbang - Export @PropertyInject should support ENV variables
> -----------------------------------------------------------------
>
> Key: CAMEL-21271
> URL: https://issues.apache.org/jira/browse/CAMEL-21271
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 4.8.0
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 4.8.1, 4.9.0
>
>
> jbang export does not work for properties configured as
> custom.number=\{{env:CUSTOM_NUMBER:12345}} and injected as
> @PropertyInject("custom.number")
> private Integer number;
> Error:
> Caused by: org.apache.camel.TypeConversionException: Error during type
> conversion from type: java.lang.String to the required type:
> java.lang.Integer with value @@CamelMagicValue@@ due to
> java.lang.NumberFormatException: For input string: "@@CamelMagicValue@@"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)