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/10 02:21:30 UTC

git commit: CAMEL-7181 fixe the test failure of CxfMtomPOJOProducerTest

Updated Branches:
  refs/heads/master 89ce79eaf -> 9e383f401


CAMEL-7181 fixe the test failure of CxfMtomPOJOProducerTest


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

Branch: refs/heads/master
Commit: 9e383f401a22ab6c7085d7cb2e949ad11f020e8b
Parents: 89ce79e
Author: Willem Jiang <wi...@gmail.com>
Authored: Mon Feb 10 09:21:03 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Mon Feb 10 09:21:03 2014 +0800

----------------------------------------------------------------------
 .../java/org/apache/camel/component/cxf/DefaultCxfBinding.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9e383f40/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
index bf7d324..1dee194 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
@@ -171,7 +171,7 @@ public class DefaultCxfBinding implements CxfBinding, HeaderFilterStrategyAware
                                                           DataFormat.class);
         boolean isXop = Boolean.valueOf(camelExchange.getProperty(Message.MTOM_ENABLED, String.class));
         // propagate attachments if the data format is not POJO with MTOM enabled
-        if (cxfMessage.getAttachments() != null && !(DataFormat.POJO.equals(dataFormat) && !isXop)) {
+        if (cxfMessage.getAttachments() != null && !(DataFormat.POJO.equals(dataFormat) && isXop)) {
             // propagate attachments
             for (Attachment attachment : cxfMessage.getAttachments()) {
                 camelExchange.getOut().addAttachment(attachment.getId(), attachment.getDataHandler());