Hi, Developers of apache/camel, I am writing to report a race issue on use of ConcurrentHashMap. The issue is reported by our tool in an automatic way. Although manually confirmed, it would be a false positive, given we do not know the specification of the program. We would very appreciate if you could check below for details and confirm with us whether it is a real problem. For more information, please refer to our website: http://sav.sutd.edu.sg/?page_id=2845
File: "apache/camel/components/camel-guice/src/test/java/org/apache/camel/guice/testing/InjectorManager.java" Location: Line (109/154,102/106) Description: The get-then-put operation in line 102 and 106 are guarded by the lock "injectors". I assume the intention is to guarantee the atomicity of the get-then-put operation so as to avoid unexpected data races. However, the write operations to injectors in line 109 and 154 may break this atomicity since they are not properly guarded by the same lock. Relying on the ConcurrentHashMap to ensure exclusive access is dangerous since ConcurrentHashMap has no guarantee of exclusive access. -- View this message in context: http://camel.465427.n5.nabble.com/report-a-possible-race-issue-tp5771741.html Sent from the Camel Development mailing list archive at Nabble.com.