I'm trying to track some concurrency problems related to collections in a large code-base.
I would like to replace all the collections/maps with an alternate implementation that throws an exception when the 3rd thread accesses it (or similar; I can see several possible strategis that might work). Anyone know of any libraries/tools/strategies to do this ?
I was thinking about doing a search-replace in the entire code-base and just temporarily replace any reference to stuff like "new HashMap" with a different version. But maybe there's a better way ?