-
Bug
-
Resolution: Unresolved
-
P3
-
8, 17, 22
-
None
The PrintServiceLookup class allows adding to a global list, that is iterated over concurrently. The iteration will cause a concurrent modification exception. But the iteration loop silences any exceptions, and the next time next is called on the iterator, the same thing will happen again, and we get stuck in an infinite loop.
We should make sure that the iteration code takes the same lock as the code protecting inserts into the list.
We should make sure that the iteration code takes the same lock as the code protecting inserts into the list.