openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r615368 - /openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
Date Fri, 25 Jan 2008 21:59:51 GMT
Author: pcl
Date: Fri Jan 25 13:59:50 2008
New Revision: 615368

URL: http://svn.apache.org/viewvc?rev=615368&view=rev
Log:
OPENJPA-437

Modified:
    openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java

Modified: openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java?rev=615368&r1=615367&r2=615368&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
(original)
+++ openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
Fri Jan 25 13:59:50 2008
@@ -46,7 +46,6 @@
 import org.apache.openjpa.lib.log.Log;
 import org.apache.openjpa.lib.util.J2DoPrivHelper;
 import org.apache.openjpa.lib.util.Localizer;
-import org.apache.openjpa.lib.util.ReferenceHashSet;
 import org.apache.openjpa.lib.util.JavaVersions;
 import org.apache.openjpa.lib.util.concurrent.ConcurrentHashMap;
 import org.apache.openjpa.lib.util.concurrent.ConcurrentReferenceHashSet;
@@ -134,7 +133,8 @@
      */
     protected AbstractBrokerFactory(OpenJPAConfiguration config) {
         _conf = config;
-        _pcClassLoaders = new ReferenceHashSet(ReferenceHashSet.WEAK);
+        _pcClassLoaders = new ConcurrentReferenceHashSet(
+            ConcurrentReferenceHashSet.WEAK);
     }
 
     /**
@@ -256,7 +256,7 @@
             if (clss.isEmpty())
                 _pcClassNames = Collections.EMPTY_SET;
             else {
-                _pcClassNames = new ConcurrentReferenceHashSet(
+                Collection c = new ConcurrentReferenceHashSet(
                     ConcurrentReferenceHashSet.HARD);
                 for (Iterator itr = clss.iterator(); itr.hasNext();) {
                     Class cls = (Class) itr.next();
@@ -265,6 +265,7 @@
                         toRedefine.add(cls);
                 }
                 _pcClassLoaders.add(loader);
+                _pcClassNames = c;
             }
             _persistentTypesLoaded = true;
         } else {



Mime
View raw message