[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-9072) ConcurrentModificationException in CDI model when iterating types returned by method getLegalTypes()

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Fri Jun 3 21:00:59 EDT 2011


ConcurrentModificationException in CDI model when iterating types returned by method getLegalTypes()
----------------------------------------------------------------------------------------------------

                 Key: JBIDE-9072
                 URL: https://issues.jboss.org/browse/JBIDE-9072
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: cdi (jsr-299)
    Affects Versions: 3.3.0.M1
            Reporter: Viacheslav Kabanovich
            Assignee: Viacheslav Kabanovich
             Fix For: 3.3.0.M2


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list