Skip to content
Snippets Groups Projects
Commit a29901d6 authored by cramakri's avatar cramakri
Browse files

SOB-16 Fix a classloading problem with the screening api for Matlab

SVN: 24074
parent 6d65a43f
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ public class RetryProxyFactory
if (proxyTargetInterfaces == null || proxyTargetInterfaces.length == 0)
{
// We could ask CGLIB library to create a proxy even if the object doesn't
// implement any interfaces, but we don't want to use this library.
// implement any interfaces, but we don't want to use this library.
// Instead, we just return an unchanged object.
return proxyTarget;
} else
......@@ -50,7 +50,7 @@ public class RetryProxyFactory
ProxyFactory proxyFactory = new ProxyFactory(proxyTarget);
proxyFactory.addInterface(RetryProxy.class);
proxyFactory.addAdvice(new RetryInterceptor());
return (T) proxyFactory.getProxy();
return (T) proxyFactory.getProxy(proxyTarget.getClass().getClassLoader());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment