saaaaaaarah opened a new issue, #2216: URL: https://github.com/apache/karaf/issues/2216
I'm trying to override a numeric config property via environment variable. I think the change in [this commit](https://github.com/apache/karaf/pull/2181/commits/903003fdf3f2a983cfc81067c737883c4a199edf) breaks the previous behavior. When overwriting environment variables, numeric values were previously stored as strings in the properties map because they were specified as strings in the configuration file, and now they are parsed as integers. Previous: `if (properties.get(key) != null && (properties.get(key) instanceof Number)) { properties.put(key, Integer.parseInt(value)); } else { properties.put(key, value); }` Now: ` int intValue = Integer.parseInt(value); properties.put(key, intValue);` This causes problems when using such properties as constructor arguments for beans, because the value is now resolved to null there. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
