You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2011/10/08 15:12:13 UTC

svn commit: r1180373 - /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java

Author: olegk
Date: Sat Oct  8 13:12:12 2011
New Revision: 1180373

URL: http://svn.apache.org/viewvc?rev=1180373&view=rev
Log:
HTTPCLIENT-1135: RandomAccessFile mode w is not valid

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java?rev=1180373&r1=1180372&r2=1180373&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java (original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java Sat Oct  8 13:12:12 2011
@@ -69,7 +69,7 @@ class IOUtils {
 
     static void copyFile(final File in, final File out) throws IOException {
         RandomAccessFile f1 = new RandomAccessFile(in, "r");
-        RandomAccessFile f2 = new RandomAccessFile(out, "w");
+        RandomAccessFile f2 = new RandomAccessFile(out, "rw");
         try {
             FileChannel c1 = f1.getChannel();
             FileChannel c2 = f2.getChannel();