[jira] [Updated] (VFS-610) Resource leak in CombinedResources.loadResources(String)
[ https://issues.apache.org/jira/browse/VFS-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lae updated VFS-610: Description: {{org.apache.commons.vfs2.util.CombinedResources.loadResources(String)}} doesn't close the streams it creates: {code:java} protected void loadResources(String resourceName) { ... properties.load(resource.openConnection().getInputStream()); ... } {code} was: {{org.apache.commons.vfs2.util.CombinedResources.loadResources(String)}} doesn't close the {{InputStream}}s it created: {code:java} protected void loadResources(String resourceName) { ... properties.load(resource.openConnection().getInputStream()); ... } {code} > Resource leak in CombinedResources.loadResources(String) > > > Key: VFS-610 > URL: https://issues.apache.org/jira/browse/VFS-610 > Project: Commons VFS > Issue Type: Bug >Affects Versions: 2.0 >Reporter: Lae > > {{org.apache.commons.vfs2.util.CombinedResources.loadResources(String)}} > doesn't close the streams it creates: > {code:java} > protected void loadResources(String resourceName) > { > ... > > properties.load(resource.openConnection().getInputStream()); > ... > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (VFS-610) Resource leak in CombinedResources.loadResources(String)
Lae created VFS-610: --- Summary: Resource leak in CombinedResources.loadResources(String) Key: VFS-610 URL: https://issues.apache.org/jira/browse/VFS-610 Project: Commons VFS Issue Type: Bug Affects Versions: 2.0 Reporter: Lae {{org.apache.commons.vfs2.util.CombinedResources.loadResources(String)}} doesn't close the {{InputStream}}s it created: {code:java} protected void loadResources(String resourceName) { ... properties.load(resource.openConnection().getInputStream()); ... } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] Created: (IO-262) FileAlterationObserver has no getter for FileFilter
FileAlterationObserver has no getter for FileFilter --- Key: IO-262 URL: https://issues.apache.org/jira/browse/IO-262 Project: Commons IO Issue Type: Improvement Components: Utilities Affects Versions: 2.0.1, 2.0 Reporter: Lae Priority: Trivial FileAlterationObserver accepts a FileFilter, but there is no getter for it, which causes inconvenience when implementing a FileAlterationListener. For example, when implementing FileAlterationListener.onStart(FileAlterationObserver), I wanted to get all existing files under FileAlterationObserver.getDirectory() that satisfies the FileFilter the user used to construct the observer, so that I can keep track of present states of the target files as well as their future states. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira