/*
* Handle virtual overrides by finding the method that we would normally
* invoke and using its declaring class as the dispatch target.
*/
while (implementingType.findMethod(m.getName(), parameterTypes) == null) {
implementingType = implementingType.getSuperclass();
}
assert implementingType != null : "Unable to find virtual override for "
+ m.toString();