cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1420815 - in /cxf/branches/2.5.x-fixes: ./ rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java
Date Wed, 12 Dec 2012 16:35:46 GMT
Author: ay
Date: Wed Dec 12 16:35:44 2012
New Revision: 1420815

URL: http://svn.apache.org/viewvc?rev=1420815&view=rev
Log:
Merged revisions 1419523 via  svn merge from
https://svn.apache.org/repos/asf/cxf/branches/2.6.x-fixes

........
  r1419523 | ay | 2012-12-10 16:31:04 +0100 (Mon, 10 Dec 2012) | 9 lines
  
  Merged revisions 1419471 via  svn merge from
  https://svn.apache.org/repos/asf/cxf/trunk
  
  ........
    r1419471 | ay | 2012-12-10 15:06:19 +0100 (Mon, 10 Dec 2012) | 1 line
    
    [CXF-4690] stax's inTransform feature does not work with a provider's Source based service
  ........
  
........

Modified:
    cxf/branches/2.5.x-fixes/   (props changed)
    cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java
    cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java

Propchange: cxf/branches/2.5.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java?rev=1420815&r1=1420814&r2=1420815&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataReader.java
Wed Dec 12 16:35:44 2012
@@ -181,31 +181,24 @@ public class XMLStreamDataReader impleme
                 public boolean hasNext() throws XMLStreamException {
                     boolean b = super.hasNext();
                     if (!b && !closed) {
-                        closed = true;
-                        try {
-                            super.close();
-                        } catch (XMLStreamException e) {
-                            //ignore
-                        }
-                        try {
-                            ins.close();
-                        } catch (IOException e) {
-                            //ignore
-                        }
+                        close();
                     }
                     return b;
                 }
 
                 public void close() throws XMLStreamException {
+                    closed = true;
                     try {
                         super.close();
                     }  catch (XMLStreamException e) {
                         //ignore
                     }
-                    try {
-                        ins.close();
-                    }  catch (IOException e) {
-                        //ignore
+                    if (ins != null) {
+                        try {
+                            ins.close();
+                        }  catch (IOException e) {
+                            //ignore
+                        }
                     }
                 }
             };

Modified: cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java?rev=1420815&r1=1420814&r2=1420815&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java
Wed Dec 12 16:35:44 2012
@@ -79,7 +79,6 @@ public class TransformInInterceptor exte
         XMLStreamReader transformReader = createTransformReaderIfNeeded(reader, is);
         if (transformReader != null) {
             message.setContent(XMLStreamReader.class, transformReader);
-            message.removeContent(InputStream.class);
         }
          
     }



Mime
View raw message