[jboss-cvs] JBossAS SVN: r109197 - trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 8 12:25:34 EST 2010


Author: marius.bogoevici
Date: 2010-11-08 12:25:34 -0500 (Mon, 08 Nov 2010)
New Revision: 109197

Modified:
   trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda/ClassLoaderResourceLoader.java
Log:
JBAS-8609

Modified: trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda/ClassLoaderResourceLoader.java
===================================================================
--- trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda/ClassLoaderResourceLoader.java	2010-11-08 16:42:44 UTC (rev 109196)
+++ trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda/ClassLoaderResourceLoader.java	2010-11-08 17:25:34 UTC (rev 109197)
@@ -4,6 +4,7 @@
 import org.jboss.weld.resources.spi.ResourceLoadingException;
 
 import java.io.IOException;
+import java.lang.ref.WeakReference;
 import java.net.URL;
 import java.util.ArrayList;
 import java.util.Collection;
@@ -69,6 +70,8 @@
 
    public void cleanup()
    {
-      this.classLoader = null;
+     // do nothing - the reference to consider a way of removing the CL reference , but this is currently not possible
+     // due to BeanDeploymentArchiveImplementation instances being shared amongst deployments
+     // setting this to null would cause those deployments to fail
    }
 }



More information about the jboss-cvs-commits mailing list