activemq
activemq copied to clipboard
TransportConnection does not synchronize iteration on synchronized list
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().