hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r555377 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/io/GenericWritable.java
Date Wed, 11 Jul 2007 19:37:09 GMT
Author: cutting
Date: Wed Jul 11 12:37:06 2007
New Revision: 555377

URL: http://svn.apache.org/viewvc?view=rev&rev=555377
Log:
HADOOP-1584.  Fix a bug in GenericWritable that limited it to 128 types.  Contributed by Espen
Amble Kolstad.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/io/GenericWritable.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=555377&r1=555376&r2=555377
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Wed Jul 11 12:37:06 2007
@@ -303,6 +303,9 @@
  93. HADOOP-1578.  Fix datanode to send its storage id to namenode
      during registration.  (Konstantin Shvachko via cutting)
 
+ 94. HADOOP-1584.  Fix a bug in GenericWritable which limited it to
+     128 types instead of 256.  (Espen Amble Kolstad via cutting)
+
 
 Release 0.13.0 - 2007-06-08
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/io/GenericWritable.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/io/GenericWritable.java?view=diff&rev=555377&r1=555376&r2=555377
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/io/GenericWritable.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/io/GenericWritable.java Wed Jul 11 12:37:06
2007
@@ -81,7 +81,7 @@
 
   public void readFields(DataInput in) throws IOException {
     type = in.readByte();
-    Class clazz = getTypes()[type];
+    Class clazz = getTypes()[type & 0xff];
     try {
       instance = (Writable) clazz.newInstance();
     } catch (Exception e) {



Mime
View raw message