public static RVMMethod lookupMethod(RVMClass cls,MethodReference ref){
  RVMMethod newmeth=null;
  if (cls.isResolved() && !cls.isInterface()) {
    Atom mn=ref.getName();
    Atom md=ref.getDescriptor();
    for (; (newmeth == null) && (cls != null); cls=cls.getSuperClass()) {
      newmeth=cls.findDeclaredMethod(mn,md);
    }
  }
  return newmeth;
}

public static RVMMethod lookupMethod ( RVMClass cls , MethodReference ref ) { RVMMethod newmeth = null ; if ( cls . isResolved ( ) && ! cls . isInterface ( ) ) { Atom mn = ref . getName ( ) ; Atom md = ref . getDescriptor ( ) ; for ( ; ( newmeth == null ) && ( cls != null ) ; cls = cls . getSuperClass ( ) ) { newmeth = cls . findDeclaredMethod ( mn , md ) ; } } return newmeth ; }
find the method of the given class that matches the given descriptor .
