[
https://issues.apache.org/jira/browse/CAMEL-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070705#comment-13070705
]
Claus Ibsen commented on CAMEL-4265:
------------------------------------
Thanks for reporting. Do you want to try to provide a patch to fix this?
See more details here
http://camel.apache.org/contributing.html
> Fail to close stream in DefaultPropertiesResolver
> -------------------------------------------------
>
> Key: CAMEL-4265
> URL: https://issues.apache.org/jira/browse/CAMEL-4265
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.3, 2.8.0
> Environment: Any
> Reporter: edge wang
> Fix For: 2.9.0
>
>
> protected Properties loadPropertiesFromFilePath(CamelContext context,
> String path) throws IOException {
> if (path.startsWith("file:")) {
> path = ObjectHelper.after(path, "file:");
> }
> InputStream is = new FileInputStream(path);
> Properties answer = new Properties();
> answer.load(is);
> return answer;
> }
> Stream not closed before return, as well as in another method:
> loadPropertiesFromClasspath.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira