openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1477177 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/ProviderBasedProxyProducer.java
Date Mon, 29 Apr 2013 16:32:02 GMT
Author: rmannibucau
Date: Mon Apr 29 16:32:01 2013
New Revision: 1477177

URL: http://svn.apache.org/r1477177
Log:
OWB-849 using the right classloader in ProviderBasedProxyProducer

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/ProviderBasedProxyProducer.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/ProviderBasedProxyProducer.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/ProviderBasedProxyProducer.java?rev=1477177&r1=1477176&r2=1477177&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/ProviderBasedProxyProducer.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/ProviderBasedProxyProducer.java
Mon Apr 29 16:32:01 2013
@@ -45,7 +45,7 @@ public class ProviderBasedProxyProducer<
         if (proxyInstance == null)
         {
             NormalScopeProxyFactory proxyFactory = webBeansContext.getNormalScopeProxyFactory();
-            Class<T> proxyClass = proxyFactory.createProxyClass(getClass().getClassLoader(),
returnType);
+            Class<T> proxyClass = proxyFactory.createProxyClass(returnType.getClassLoader(),
returnType);
             proxyInstance = proxyFactory.createProxyInstance(proxyClass, provider);
         }
         return proxyInstance;



Mime
View raw message