Browse Source

HADOOP-455. Fix a bug in Text, where DEL was not permitted. Contributed by Hairong.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@431709 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 19 years ago
parent
commit
e4a2d6d9f2
2 changed files with 4 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/io/Text.java

+ 3 - 0
CHANGES.txt

@@ -37,6 +37,9 @@ Trunk (unreleased changes)
  8. HADOOP-436.  Fix an error-handling bug in the web ui.
     (Devaraj Das via cutting)
 
+ 9. HADOOP-455.  Fix a bug in Text, where DEL was not permitted.
+    (Hairong Kuang via cutting)
+
 
 Release 0.5.0 - 2006-08-04
 

+ 1 - 1
src/java/org/apache/hadoop/io/Text.java

@@ -435,7 +435,7 @@ public class Text implements WritableComparable {
 
         switch (length) {
         case 0: // check for ASCII
-          if (leadByte > 0x7E)
+          if (leadByte > 0x7F)
             throw new MalformedInputException(count);
           break;
         case 1: