hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1180374 - /httpcomponents/httpclient/branches/4.1.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java
Date Sat, 08 Oct 2011 13:20:17 GMT
Author: olegk
Date: Sat Oct  8 13:20:17 2011
New Revision: 1180374

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

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

Modified: httpcomponents/httpclient/branches/4.1.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.1.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java?rev=1180374&r1=1180373&r2=1180374&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.1.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java
(original)
+++ httpcomponents/httpclient/branches/4.1.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/IOUtils.java
Sat Oct  8 13:20:17 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