From d3f89a21ac7aaadf06e44e70b68ff614a4f349ba Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Mon, 8 Dec 2008 08:30:35 +0000 Subject: [PATCH] SOLR-901 -- FastOutputStream ignores write(byte[]) call git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@724285 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ src/common/org/apache/solr/common/util/FastOutputStream.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 15ff50d4f46..0c75570769b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -162,6 +162,8 @@ Bug Fixes 15. SOLR-898: Fix null pointer exception for the JSON response writer based formats when nl.json=arrarr with null keys. (yonik) +16. SOLR-901: FastOutputStream ignores write(byte[]) call. (Noble Paul via shalin) + Other Changes ---------------------- diff --git a/src/common/org/apache/solr/common/util/FastOutputStream.java b/src/common/org/apache/solr/common/util/FastOutputStream.java index 3f6275c2ee7..f10895ce411 100755 --- a/src/common/org/apache/solr/common/util/FastOutputStream.java +++ b/src/common/org/apache/solr/common/util/FastOutputStream.java @@ -51,6 +51,7 @@ public class FastOutputStream extends OutputStream implements DataOutput { } public void write(byte b[]) throws IOException { + write(b,0,b.length); } public void write(byte b) throws IOException { @@ -185,4 +186,4 @@ public class FastOutputStream extends OutputStream implements DataOutput { public long size() { return written + pos; } -} \ No newline at end of file +}