if (parent != null) {
TypeRegistry typeRegistry = TypeRegistry.getTypeRegistryFor(parent);
// classloader.getParent() can return null - I've seen it when the target of the call being compiled is
// java_lang_class$getDeclaredFields (i.e. a system class that cant change, so rewriting is unnecessary...)
if (typeRegistry != null) {
bytes = typeRegistry.methodCallRewrite(bytes);
} else {
if (GlobalConfiguration.verboseMode) {
System.out.println("No type registry found for parent classloader: " + parent);
}
bytes = MethodInvokerRewriter.rewrite(null, bytes, true);