dain        2004/06/03 19:12:13

  Modified:    modules/core/src/java/org/openejb/client
                        CgLibProxyFactory.java
  Log:

  Cl for proxy is based on the interface class not TCL
  
  Revision  Changes    Path
  1.4       +2 -5      
openejb/modules/core/src/java/org/openejb/client/CgLibProxyFactory.java
  
  Index: CgLibProxyFactory.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/client/CgLibProxyFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CgLibProxyFactory.java    14 Apr 2004 03:27:22 -0000      1.3
  +++ CgLibProxyFactory.java    3 Jun 2004 23:12:13 -0000       1.4
  @@ -44,12 +44,10 @@
    */
   package org.openejb.client;
   
  -import java.lang.reflect.InvocationTargetException;
   import java.lang.reflect.Method;
   import java.lang.reflect.Modifier;
   import java.util.Properties;
   
  -
   import net.sf.cglib.proxy.Callback;
   import net.sf.cglib.proxy.CallbackFilter;
   import net.sf.cglib.proxy.Enhancer;
  @@ -99,8 +97,7 @@
           Enhancer enhancer = getEnhancer(superClass,interfaces);
           enhancer.setCallbacks(new Callback[]{NoOp.INSTANCE, interceptor});
   
  -        ClassLoader cl = Thread.currentThread().getContextClassLoader();
  -        enhancer.setClassLoader(cl);
  +        enhancer.setClassLoader(superClass.getClassLoader());
           return enhancer.create(new Class[]{CgLibInvocationHandler.class}, new 
Object[]{interceptor});
       }
       
  
  
  

Reply via email to