hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1180373 - /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java
Date Sat, 08 Oct 2011 13:12:13 GMT
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();



Mime
View raw message