geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1393112 - /geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.java
Date Tue, 02 Oct 2012 19:11:08 GMT
Author: gnodet
Date: Tue Oct  2 19:11:07 2012
New Revision: 1393112

URL: http://svn.apache.org/viewvc?rev=1393112&view=rev
Log:
[XBEAN-190] XBeanNamespaceHandler does not close resource input streams

Modified:
    geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.java

Modified: geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.java?rev=1393112&r1=1393111&r2=1393112&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.java
(original)
+++ geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.java
Tue Oct  2 19:11:07 2012
@@ -817,6 +817,14 @@ public class XBeanNamespaceHandler imple
             catch (IOException e) {
                 log.warn("Failed to load resource from uri: " + uri, e);
             }
+            finally {
+                try {
+                    in.close();
+                }
+                catch (IOException e) {
+                    log.warn("Failed to close resource from uri: " + uri, e);
+                }
+            }
         }
         return null;
     }



Mime
View raw message