Commit 994df88
committed
Fix race condition in the
According to the `Collections.synchronizedList()` Javadocs,
it has to be iterated with a `synchronized (list)`.
Otherwise, there is no guarantee that memory barrier for list items is fulfilled.RabbitAmqpListenerTests
1 parent 9c0c4e2 commit 994df88
File tree
1 file changed
+4
-2
lines changed- spring-rabbitmq-client/src/test/java/org/springframework/amqp/rabbitmq/client/listener
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
169 | | - | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
0 commit comments