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 2013/08/20 05:01:19 UTC

git commit: CAMEL-6651 Calling processAnnotations when using the XStreamDataFormat's aliases are set

Updated Branches:
  refs/heads/camel-2.10.x 8a8cf9e93 -> a021e9cd2


CAMEL-6651 Calling processAnnotations when using the XStreamDataFormat's aliases are set


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

Branch: refs/heads/camel-2.10.x
Commit: a021e9cd2ff5d989c1098ce838c82d9d59f3037b
Parents: 8a8cf9e
Author: Willem Jiang <ni...@apache.org>
Authored: Tue Aug 20 10:26:05 2013 +0800
Committer: Willem Jiang <ni...@apache.org>
Committed: Tue Aug 20 10:57:38 2013 +0800

----------------------------------------------------------------------
 .../apache/camel/dataformat/xstream/AbstractXStreamWrapper.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a021e9cd/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java
index 76d6ca7..3aa8a01 100644
--- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java
+++ b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java
@@ -91,6 +91,8 @@ public abstract class AbstractXStreamWrapper implements DataFormat {
             if (this.aliases != null) {
                 for (Entry<String, String> entry : this.aliases.entrySet()) {
                     xstream.alias(entry.getKey(), resolver.resolveMandatoryClass(entry.getValue()));
+                    // It can turn the auto-detection mode off
+                    xstream.processAnnotations(resolver.resolveMandatoryClass(entry.getValue()));
                 }
             }