m = findMethod(Repository.lookupClass(className), methodName, methodSig, INSTANCE_METHOD); if (m == null) {
result = findMethod(Repository.lookupClass(className), methodName, methodSig, INSTANCE_METHOD); if (result == null) {
	public static Method findPrototypeMethod(InvokeInstruction inv, ConstantPoolGen cpg)	        throws ClassNotFoundException {		Method m = null;				if (DEBUG_METHOD_LOOKUP) {			System.out.println("Find prototype method for " +					SignatureConverter.convertMethodSignature(inv,cpg));		}				short opcode = inv.getOpcode();		// Find the method		if (opcode == Constants.INVOKESPECIAL) {			// Non-virtual dispatch			m = findExactMethod(inv, cpg, INSTANCE_METHOD);		} else {			String className = inv.getClassName(cpg);			String methodName = inv.getName(cpg);			String methodSig = inv.getSignature(cpg);			if (DEBUG_METHOD_LOOKUP) {				System.out.println("[Class name is " + className + "]");				System.out.println("[Method name is " + methodName + "]");				System.out.println("[Method signature is " + methodSig + "]");			}			if (opcode == Constants.INVOKEVIRTUAL || opcode == Constants.INVOKESTATIC) {				if (DEBUG_METHOD_LOOKUP) {					System.out.println("[invokevirtual or invokestatic]");				}				// Dispatch where the class hierarchy is searched				// Check superclasses				MethodChooser methodChooser = (opcode == Constants.INVOKESTATIC)						? STATIC_METHOD : INSTANCE_METHOD;				m = findMethod(Repository.lookupClass(className), methodName, methodSig, methodChooser);				if (m == null) {					if (DEBUG_METHOD_LOOKUP) {						System.out.println("[not in class, checking superclasses...]");					}					JavaClass[] superClassList = Repository.getSuperClasses(className);					m = findMethod(superClassList, methodName, methodSig, methodChooser);				}			} else {				// Check superinterfaces				m = findMethod(Repository.lookupClass(className), methodName, methodSig, INSTANCE_METHOD);				if (m == null) {					JavaClass[] interfaceList = Repository.getInterfaces(className);					m = findMethod(interfaceList, methodName, methodSig, INSTANCE_METHOD);				}			}		}		return m;	}