[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-9546) Reorganize synchronization in CDIProject

Fisheye JIRA Integration (JIRA) jira-events at lists.jboss.org
Mon Aug 15 15:28:02 EDT 2011


Reorganize synchronization in CDIProject
----------------------------------------

                 Key: JBIDE-9546
                 URL: https://issues.jboss.org/browse/JBIDE-9546
             Project: Tools (JBoss Tools)
          Issue Type: Sub-task
    Affects Versions: 3.3.0.M3
            Reporter: Fisheye JIRA Integration
             Fix For: 3.3.0.M3


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
{code}                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();
                }{code}

--
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