You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "luigidemasi (via GitHub)" <gi...@apache.org> on 2023/09/05 17:30:11 UTC
[GitHub] [camel] luigidemasi commented on a diff in pull request #11307: CAMEL-19833: camel-bindy - race condition in BindyAbstractFactory.link()
luigidemasi commented on code in PR #11307:
URL: https://github.com/apache/camel/pull/11307#discussion_r1316190781
##########
components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractFactory.java:
##########
@@ -133,7 +133,7 @@ public abstract void bind(CamelContext camelContext, List<String> data, Map<Stri
/**
* Link objects together
*/
- public void link(Map<String, Object> model) {
+ public synchronized void link(Map<String, Object> model) {
Review Comment:
It was my first idea to fix it at ReflectionHelper level but I wanted my changes to impact as less as possible on other components, but yeah the scenario you described, even uncommon, can be a problem. I will change the commit.
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org