You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/02/26 03:33:53 UTC

[4/5] git commit: CAMEL-7209 Fixed the unit test failure of XmlConverterTest

CAMEL-7209 Fixed the unit test failure of XmlConverterTest


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/daafa49d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/daafa49d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/daafa49d

Branch: refs/heads/camel-2.11.x
Commit: daafa49d4958cbb0f5624511ade7db76e3bcb170
Parents: 285dc7a
Author: Willem Jiang <wi...@gmail.com>
Authored: Mon Feb 17 14:07:14 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Wed Feb 26 10:32:21 2014 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/converter/NIOConverter.java      | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/daafa49d/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java b/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java
index d0f86e7..26f489c 100644
--- a/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java
+++ b/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java
@@ -99,6 +99,7 @@ public final class NIOConverter {
             bytes = value.getBytes();
         }
         buf.put(bytes);
+        buf.flip();
         return buf;
     }