Skip to content

Commit 67c8902

Browse files
committed
[XBEAN-190] XBeanNamespaceHandler does not close resource input streams
git-svn-id: https://svn.apache.org/repos/asf/geronimo/xbean/trunk@1393112 13f79535-47bb-0310-9956-ffa450edef68
1 parent 028eae4 commit 67c8902

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

xbean-spring/src/main/java/org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,14 @@ protected MappingMetaData findNamespaceProperties(String namespaceURI, String lo
817817
catch (IOException e) {
818818
log.warn("Failed to load resource from uri: " + uri, e);
819819
}
820+
finally {
821+
try {
822+
in.close();
823+
}
824+
catch (IOException e) {
825+
log.warn("Failed to close resource from uri: " + uri, e);
826+
}
827+
}
820828
}
821829
return null;
822830
}

0 commit comments

Comments
 (0)