mmidy       00/09/26 06:36:38

  Modified:    src/org/apache/xalan/xpath XSLTJavaClassEngine.java
  Log:
  Support for new BSF.jar
  
  Revision  Changes    Path
  1.9       +9 -5      
xml-xalan/src/org/apache/xalan/xpath/XSLTJavaClassEngine.java
  
  Index: XSLTJavaClassEngine.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/src/org/apache/xalan/xpath/XSLTJavaClassEngine.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- XSLTJavaClassEngine.java  2000/09/25 20:31:28     1.8
  +++ XSLTJavaClassEngine.java  2000/09/26 13:36:37     1.9
  @@ -67,7 +67,7 @@
   import com.ibm.bsf.*;
   import com.ibm.bsf.util.BSFEngineImpl;
   
  -import com.ibm.cs.util.ReflectionUtils;
  +import com.ibm.bsf.util.MethodUtils;
   
   /**
    * Patch from Costin Manolache 
  @@ -267,14 +267,16 @@
               // otherwise find and invoke the appropriate method. The method
               // searching logic is the same of course.
               Constructor c =
  -                           ReflectionUtils.getConstructor ((Class) object, 
argTypes);
  +                                                                             
                         MethodUtils.getConstructor((Class) object, argTypes);
  +                          //ReflectionUtils.getConstructor ((Class) object, 
argTypes);
               Object obj = c.newInstance (methodArgs);
               
               return obj;
             }
             else 
             {
  -                                             Method m = 
ReflectionUtils.getMethod (object, method, argTypes);
  +                                             Method m = 
MethodUtils.getMethod (object, method, argTypes);
  +                                             //Method m = 
ReflectionUtils.getMethod (object, method, argTypes);
               return m.invoke (object, methodArgs);
             }
           }
  @@ -529,13 +531,15 @@
               // otherwise find and invoke the appropriate method. The method
               // searching logic is the same of course.
               Constructor c =
  -                           ReflectionUtils.getConstructor ((Class) object, 
argTypes);
  +                                                                             
                         MethodUtils.getConstructor ((Class) object, argTypes);
  +                          //ReflectionUtils.getConstructor ((Class) object, 
argTypes);
               Object obj = c.newInstance (methodArgs);
               return obj;
             }
             else 
             {
  -            Method m = ReflectionUtils.getMethod (object, method, argTypes);
  +                                             Method m = 
MethodUtils.getMethod (object, method, argTypes);
  +            //Method m = ReflectionUtils.getMethod (object, method, 
argTypes);
               Object returnObj = m.invoke (object, methodArgs);
               if(!isNew)
               {
  
  
  

Reply via email to