cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gma...@apache.org
Subject svn commit: r946529 - /cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java
Date Thu, 20 May 2010 05:14:53 GMT
Author: gmazza
Date: Thu May 20 05:14:53 2010
New Revision: 946529

URL: http://svn.apache.org/viewvc?rev=946529&view=rev
Log:
CXF-2816 Fix: CachedOutputStream leaves behind temp files if resetOut() is called.  
Patch by Aaron Pieper.
  

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java?rev=946529&r1=946528&r2=946529&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java Thu May 20 05:14:53
2010
@@ -228,8 +228,8 @@ public class CachedOutputStream extends 
             } else {
                 // read the file
                 currentStream.close();
-                FileInputStream fin = new FileInputStream(tempFile);
                 if (copyOldContent) {
+                    FileInputStream fin = new FileInputStream(tempFile);
                     IOUtils.copyAndCloseInput(fin, out);
                 }
                 streamList.remove(currentStream);



Mime
View raw message