[ https://issues.apache.org/jira/browse/CAMEL-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-4265: ------------------------------- Fix Version/s: 2.8.1 > 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.8.1, 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