ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r953809 - /ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java
Date Fri, 11 Jun 2010 18:30:09 GMT
Author: jglick
Date: Fri Jun 11 18:30:09 2010
New Revision: 953809

URL: http://svn.apache.org/viewvc?rev=953809&view=rev
Log:
#49430: trying to work around NIO bug in JDK 1.4.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java?rev=953809&r1=953808&r2=953809&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/ResourceUtils.java Fri Jun 11 18:30:09
2010
@@ -530,8 +530,7 @@ public class ResourceUtils {
                 while (position < count) {
                     long chunk = Math.min(MAX_IO_CHUNK_SIZE, count - position);
                     position +=
-                        srcChannel.transferTo(position, chunk,
-                                              destChannel);
+                        destChannel.transferFrom(srcChannel, position, chunk);
                 }
             } finally {
                 FileUtils.close(srcChannel);



Mime
View raw message