aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From timothyjw...@apache.org
Subject svn commit: r1678346 - /aries/trunk/async/async-impl/src/main/java/org/apache/aries/async/impl/AsyncService.java
Date Fri, 08 May 2015 13:13:17 GMT
Author: timothyjward
Date: Fri May  8 13:13:17 2015
New Revision: 1678346

URL: http://svn.apache.org/r1678346
Log:
[ARIES-1320] Use the mediated interface class classloader to load types when mediating service
references

Modified:
    aries/trunk/async/async-impl/src/main/java/org/apache/aries/async/impl/AsyncService.java

Modified: aries/trunk/async/async-impl/src/main/java/org/apache/aries/async/impl/AsyncService.java
URL: http://svn.apache.org/viewvc/aries/trunk/async/async-impl/src/main/java/org/apache/aries/async/impl/AsyncService.java?rev=1678346&r1=1678345&r2=1678346&view=diff
==============================================================================
--- aries/trunk/async/async-impl/src/main/java/org/apache/aries/async/impl/AsyncService.java
(original)
+++ aries/trunk/async/async-impl/src/main/java/org/apache/aries/async/impl/AsyncService.java
Fri May  8 13:13:17 2015
@@ -97,15 +97,13 @@ public class AsyncService implements Asy
 		TrackingInvocationHandler handler = new TrackingInvocationHandler(this, 
 				clientBundle, logServiceTracker, ref);
 		
-		Bundle registeringBundle = ref.getBundle();
-
 		if(iface.isInterface()) {
 			return (T) Proxy.newProxyInstance(
-					new ClassLoader(registeringBundle.adapt(BundleWiring.class).getClassLoader()){}, 
+					new ClassLoader(iface.getClassLoader()){}, 
 					new Class[] {iface}, handler);
 		} else {
 			return (T) proxyClass(iface, handler, 
-					new CGLibAwareClassLoader(registeringBundle));
+					new CGLibAwareClassLoader(iface.getClassLoader()));
 		}
 	}
 



Mime
View raw message