Search in sources :

Example 6 with Signature

use of net.sf.cglib.core.Signature in project cglib by cglib.

the class FastMethod method helper.

private static int helper(FastClass fc, Method method) {
    int index = fc.getIndex(new Signature(method.getName(), Type.getMethodDescriptor(method)));
    if (index < 0) {
        Class[] types = method.getParameterTypes();
        System.err.println("hash=" + method.getName().hashCode() + " size=" + types.length);
        for (int i = 0; i < types.length; i++) {
            System.err.println("  types[" + i + "]=" + types[i].getName());
        }
        throw new IllegalArgumentException("Cannot find method " + method);
    }
    return index;
}
Also used : Signature(net.sf.cglib.core.Signature)

Aggregations

Signature (net.sf.cglib.core.Signature)6 MethodProxy (net.sf.cglib.proxy.MethodProxy)2 Method (java.lang.reflect.Method)1 BigInteger (java.math.BigInteger)1 URI (java.net.URI)1 Iterator (java.util.Iterator)1 Type (net.sf.cglib.asm.Type)1 FastClass (net.sf.cglib.reflect.FastClass)1 AxisEngine (org.apache.axis.AxisEngine)1 Service (org.apache.axis.client.Service)1 TypeMapping (org.apache.axis.encoding.TypeMapping)1 TypeMappingRegistry (org.apache.axis.encoding.TypeMappingRegistry)1 SimpleDeserializerFactory (org.apache.axis.encoding.ser.SimpleDeserializerFactory)1 SimpleSerializerFactory (org.apache.axis.encoding.ser.SimpleSerializerFactory)1 HandlerInfoChainFactory (org.apache.axis.handlers.HandlerInfoChainFactory)1 ServerRuntimeException (org.apache.openejb.server.ServerRuntimeException)1