aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1717741 - /aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/unit/impl/PersistenceUnitInfoImpl.java
Date Thu, 03 Dec 2015 12:03:29 GMT
Author: gnodet
Date: Thu Dec  3 12:03:29 2015
New Revision: 1717741

URL: http://svn.apache.org/viewvc?rev=1717741&view=rev
Log:
[ARIES-1463] After a persistent unit refresh, the PersistentUnitInfo may return an old class
loader

Modified:
    aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/unit/impl/PersistenceUnitInfoImpl.java

Modified: aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/unit/impl/PersistenceUnitInfoImpl.java
URL: http://svn.apache.org/viewvc/aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/unit/impl/PersistenceUnitInfoImpl.java?rev=1717741&r1=1717740&r2=1717741&view=diff
==============================================================================
--- aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/unit/impl/PersistenceUnitInfoImpl.java
(original)
+++ aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/unit/impl/PersistenceUnitInfoImpl.java
Thu Dec  3 12:03:29 2015
@@ -102,12 +102,7 @@ public class PersistenceUnitInfoImpl imp
   }
 
   public ClassLoader getClassLoader() {
-    if (cl.get() == null) {
-        // use forced because for even for a resolved bundle we could otherwise get null
-        cl.compareAndSet(null, AriesFrameworkUtil.getClassLoaderForced(bundle));
-    }
-    
-    return cl.get();
+    return AriesFrameworkUtil.getClassLoaderForced(bundle);
   }
 
   @SuppressWarnings("unchecked")



Mime
View raw message