hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rang...@apache.org
Subject svn commit: r700956 - /hadoop/core/branches/branch-0.18/src/test/org/apache/hadoop/dfs/SimulatedFSDataset.java
Date Wed, 01 Oct 2008 22:30:06 GMT
Author: rangadi
Date: Wed Oct  1 15:30:05 2008
New Revision: 700956

URL: http://svn.apache.org/viewvc?rev=700956&view=rev
Log:
HADOOP-4314 : additional fix for java 5

Modified:
    hadoop/core/branches/branch-0.18/src/test/org/apache/hadoop/dfs/SimulatedFSDataset.java

Modified: hadoop/core/branches/branch-0.18/src/test/org/apache/hadoop/dfs/SimulatedFSDataset.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.18/src/test/org/apache/hadoop/dfs/SimulatedFSDataset.java?rev=700956&r1=700955&r2=700956&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.18/src/test/org/apache/hadoop/dfs/SimulatedFSDataset.java
(original)
+++ hadoop/core/branches/branch-0.18/src/test/org/apache/hadoop/dfs/SimulatedFSDataset.java
Wed Oct  1 15:30:05 2008
@@ -282,7 +282,11 @@
       }
     }
     if (count != blockTable.length) {
-      blockTable = Arrays.copyOf(blockTable, count);
+      Block[] tmpTable = new Block[count];
+      for (int i=0; i<count; i++) {
+        tmpTable[i] = blockTable[i];
+      }
+      blockTable = tmpTable;
     }
     return blockTable;
   }



Mime
View raw message