This won't prevent concurrent modification at all. The array list constructor 
also iterates over the listeners without synchronization!

Use a CopyOnWriteArrayList for the listeners if you want this to be threadsafe, 
and make sure the constructor that takes a list *copies* the user's list into 
it.

[ Full content available at: https://github.com/apache/geode/pull/3161 ]
This message was relayed via gitbox.apache.org for 
[email protected]

Reply via email to