Author: denis.forveille
Date: 2010-06-22 12:43:19 -0400 (Tue, 22 Jun 2010)
New Revision: 13288
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/Component.java
Log:
JBSEAM-4669. Remove the synchonized keyword on getInstanceFromFactory to avoid systemwide
java deadlocks. Check JBSEAM-2419 for workarounds to solve the race condition in creating
factories
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/Component.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/Component.java 2010-06-22 13:26:45
UTC (rev 13287)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/Component.java 2010-06-22 16:43:19
UTC (rev 13288)
@@ -2051,7 +2051,8 @@
return getInstanceFromFactory(name, null);
}
- private static synchronized Object getInstanceFromFactory(String name, ScopeType
scope)
+ // JBSEAM-4669: Removed the "synchronized" keyword
+ private static Object getInstanceFromFactory(String name, ScopeType scope)
{
Init init = Init.instance();
if (init==null) //for unit tests, yew!
Show replies by date