db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r543095 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/streams/LoopingAlphabetStream.java
Date Thu, 31 May 2007 09:33:18 GMT
Author: kristwaa
Date: Thu May 31 02:33:18 2007
New Revision: 543095

URL: http://svn.apache.org/viewvc?view=rev&rev=543095
Log:
Fixed bug in LoopingAlphabetStream.read(), where the return value was not and-ed with 0xff.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/streams/LoopingAlphabetStream.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/streams/LoopingAlphabetStream.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/streams/LoopingAlphabetStream.java?view=diff&rev=543095&r1=543094&r2=543095
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/streams/LoopingAlphabetStream.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/streams/LoopingAlphabetStream.java
Thu May 31 02:33:18 2007
@@ -95,7 +95,7 @@
             return SPACE;
         }
         remainingNonBlanks--;
-        return alphabet.nextByte();
+        return (alphabet.nextByte() & 0xff);
     }
 
     public int read(byte[] buf, int off, int length) {



Mime
View raw message