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

Reorganize synchronization in CDIProject

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M3
    • 3.3.0.M3
    • cdi
    • None

      Created by Alexey Kazakov from Denis Golovin's Crucible comment on CDIProject.java lines 1174-1194 https://source.jboss.org/cru/REV-JBIDE-8#c87 :

      It looks wrong, it rather should be in one synchronized(this) block

                      synchronized (beansByPath) {
                              beansByPath.clear();
                      }
                      synchronized (beansByName) {
                              beansByName.clear();
                      }
                      synchronized (namedBeans) {
                              namedBeans.clear();
                      }
                      synchronized (alternatives) {
                              alternatives.clear();
                      }
                      synchronized (decorators) {
                              decorators.clear();
                      }
                      synchronized (interceptors) {
                              interceptors.clear();
                      }
                      synchronized (allBeans) {
                              allBeans.clear();
                      }

            scabanovich Viacheslav Kabanovich (Inactive)
            fisheye-jira-integration Fisheye JIRA Integration
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: