Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9072

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M2
    • 3.3.0.M1
    • cdi
    • None

      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.

            scabanovich Viacheslav Kabanovich (Inactive)
            scabanovich Viacheslav Kabanovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: