Claus Ibsen created CAMEL-21271:
-----------------------------------

             Summary: camel-core - @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
             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)

Reply via email to