Return-Path: Delivered-To: apmail-activemq-camel-commits-archive@locus.apache.org Received: (qmail 23996 invoked from network); 29 Feb 2008 20:25:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Feb 2008 20:25:31 -0000 Received: (qmail 2746 invoked by uid 500); 29 Feb 2008 20:25:27 -0000 Delivered-To: apmail-activemq-camel-commits-archive@activemq.apache.org Received: (qmail 2725 invoked by uid 500); 29 Feb 2008 20:25:27 -0000 Mailing-List: contact camel-commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-commits@activemq.apache.org Received: (qmail 2716 invoked by uid 99); 29 Feb 2008 20:25:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 12:25:27 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 20:24:47 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C14E21A9832; Fri, 29 Feb 2008 12:25:05 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r632425 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java Date: Fri, 29 Feb 2008 20:25:00 -0000 To: camel-commits@activemq.apache.org From: romkal@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080229202505.C14E21A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: romkal Date: Fri Feb 29 12:24:56 2008 New Revision: 632425 URL: http://svn.apache.org/viewvc?rev=632425&view=rev Log: CAMEL-343 : Every change in properties is propagated back when results are copied Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java?rev=632425&r1=632424&r2=632425&view=diff ============================================================================== --- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java (original) +++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java Fri Feb 29 12:24:56 2008 @@ -189,9 +189,8 @@ // so lets assume the last IN is the OUT result.getOut(true).copyFrom(source.getIn()); } - Map propertiesToCopy = new HashMap(source.getProperties()); - propertiesToCopy.entrySet().removeAll(result.getProperties().entrySet()); - result.getProperties().putAll(propertiesToCopy); + result.getProperties().clear(); + result.getProperties().putAll(source.getProperties()); } }