[ https://issues.apache.org/jira/browse/CAMEL-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072808#comment-13072808 ]
Claus Ibsen commented on CAMEL-4265: ------------------------------------ When we are to cut a 2.8.1 release, we will look at all the bugs fixed for Camel 2.9 and backport the bugs that can be done and make sense. I am sure this bug will be backported. So just have patience. > 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 > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.9.0 > > Attachments: close_inputstream.patch, close_inputstream.patch > > > 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