cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1185158 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java
Date Mon, 17 Oct 2011 13:23:33 GMT
Author: dkulp
Date: Mon Oct 17 13:23:32 2011
New Revision: 1185158

URL: http://svn.apache.org/viewvc?rev=1185158&view=rev
Log:
Make sure the wrapped XMLStreamReader can cleanup any resources it may
be caching

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java?rev=1185158&r1=1185157&r2=1185158&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java
Mon Oct 17 13:23:32 2011
@@ -171,6 +171,11 @@ public class XMLStreamDataReader impleme
                     if (!b && !closed) {
                         closed = true;
                         try {
+                            super.close();
+                        } catch (XMLStreamException e) {
+                            //ignore
+                        }
+                        try {
                             ins.close();
                         } catch (IOException e) {
                             //ignore



Mime
View raw message