essobedo commented on code in PR #11307:
URL: https://github.com/apache/camel/pull/11307#discussion_r1316205940
##########
core/camel-util/src/main/java/org/apache/camel/util/ReflectionHelper.java:
##########
@@ -177,7 +177,7 @@ public static Method findMethod(Class<?> clazz, String
name, Class<?>... paramTy
return null;
}
- public static void setField(Field f, Object instance, Object value) {
+ public synchronized static void setField(Field f, Object instance, Object
value) {
Review Comment:
It is not exactly what I had in mind, I was more thinking of removing the
code that restores the old value of the flag this way we don't need any
synchronization mechanism but we can wait for comments from others
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]