orpiske commented on code in PR #10037:
URL: https://github.com/apache/camel/pull/10037#discussion_r1188676102


##########
core/camel-support/src/main/java/org/apache/camel/support/MessageSupport.java:
##########
@@ -204,8 +204,6 @@ public void copyFromWithNewBody(Message that, Object 
newBody) {
             return;
         }
 
-        // must copy over CamelContext
-        CamelContextAware.trySetCamelContext(that, camelContext);

Review Comment:
   The code is already setting up the context in the caller methods (either in 
the `copy` or in the caller methods prior to this one).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to