So, in the process of rewriting the base ListenerList implementation to reduce the amount of memory thrashing that we have been seeing, I saw (while I (briefly) used java.util.ArrayList to implement it) that we frequently and somewhat randomly get listeners added to the listener lists while iterating through these lists. I saw it with key events, mouse events, and probably others as well. The original implementation and what is in there now do not care, but java.util.ArrayList did, and was throwing ConcurrentModificationException a lot.
My question is: do others know about this? Is this expected? Does anyone think this might be dangerous or not good? Or does anyone recall why this is happening (I couldn't really see why, other than perhaps for tooltips)? Thanks, ~Roger Whitcomb