Author: ningjiang
Date: Sun Aug 30 00:28:35 2009
New Revision: 809232
URL: http://svn.apache.org/viewvc?rev=809232&view=rev
Log:
CAMEL-1955 fixed the test error of camel-jetty
Modified:
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/impl/MessageSupport.java
Modified:
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/impl/MessageSupport.java
URL:
http://svn.apache.org/viewvc/camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/impl/MessageSupport.java?rev=809232&r1=809231&r2=809232&view=diff
==============================================================================
---
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/impl/MessageSupport.java
(original)
+++
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/impl/MessageSupport.java
Sun Aug 30 00:28:35 2009
@@ -134,6 +134,10 @@
}
public void copyFrom(Message that) {
+ if (this == that) {
+ // the same instance so do not need to copy
+ return;
+ }
setMessageId(that.getMessageId());
setBody(that.getBody());
getHeaders().clear();