martint/jmxutils — pull request #9 by stevenschlansker (2012-02-01 00:23:02+00:00)
Title: Fix a ConcurrentModificationException inside of MBeanExporter

Modifying a HashSet while iterating over it causes a ConcurrentModificationException.

This introduces a copy operation which ensures that the iterator is happy.

Henning suggested making the entire set a ConcurrentHashSet of some sort instead. I wanted to make the minimal change, but if you think that is a better solution feel free to do whatever you like.