java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:810)
at java.util.HashMap$KeyIterator.next(HashMap.java:845)
at
org.jboss.tools.cdi.internal.core.impl.CDIProject.containsType(CDIProject.java:405)
at
org.jboss.tools.cdi.internal.core.impl.CDIProject.getBeans(CDIProject.java:369)
at
org.jboss.tools.cdi.core.test.WeldJarTest.testWeldJar(WeldJarTest.java:45)
The cause is unsafe code in ParametedType.getAllTypes().
Reproducibility in JBDS must be very low.
Automated test is needed that uses getAllTypes() very hard from many threads.