diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java index e5cb9fe81..6d15b736a 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java @@ -134,6 +134,7 @@ public abstract class AbstractBrokerFactory */ protected AbstractBrokerFactory(OpenJPAConfiguration config) { _conf = config; + _pcClassLoaders = new ReferenceHashSet(ReferenceHashSet.WEAK); } /** @@ -255,7 +256,6 @@ public abstract class AbstractBrokerFactory if (needsSub(cls)) toRedefine.add(cls); } - _pcClassLoaders = new ReferenceHashSet(ReferenceHashSet.WEAK); _pcClassLoaders.add(loader); } } else {