activemq icon indicating copy to clipboard operation
activemq copied to clipboard

TransportConnection does not synchronize iteration on synchronized list

Open emopers opened this issue 10 years ago • 0 comments

In TransportConnection.java:861, the synchronized list returned by cs.getTempDestinations() is iterated in an unsynchronized manner, but according to the Oracle Java 7 API specification, this is not thread-safe and can lead to non-deterministic behavior. This pull request adds a fix by synchronizing the iteration on the list returned by cs.getTempDestinations().

emopers avatar Nov 24 '15 11:11 emopers