1
From: Luke Cycon <lcycon@gmail.com>
2
Date: Fri, 9 Sep 2011 13:19:39 +0200
3
Subject: fix compile errors caused by tomcat API update
6
.../remoting/transport/coyote/OutputBuffer.java | 5 +++--
7
1 files changed, 3 insertions(+), 2 deletions(-)
9
diff --git a/src/main/org/jboss/remoting/transport/coyote/OutputBuffer.java b/src/main/org/jboss/remoting/transport/coyote/OutputBuffer.java
10
index b56999b..0feb63c 100644
11
--- a/src/main/org/jboss/remoting/transport/coyote/OutputBuffer.java
12
+++ b/src/main/org/jboss/remoting/transport/coyote/OutputBuffer.java
13
@@ -607,8 +607,9 @@ public class OutputBuffer extends Writer
15
// The following has been updated to conform to jbossweb 2.1.
16
cb.setChars(c, off, len);
17
- while (cb.getLength() > 0) {
18
- conv.convert(cb, bb);
19
+ while (cb.getLength() > 0) {
20
+ conv.setByteChunk(bb);
21
+ conv.convert(cb.getChars(), 0, cb.getLength());
22
if (cb.getLength() > 0) {