After the ResolvedTable_lock is taken, we need to check if the Method that we're adding has been redefined. The code in ResolvedMethodTable::add_method() checks for redefined or deleted method. It used method_idnum() rather than orig_method_idnum() for the replacement though the new function Method::get_new_method().