// reference as probes might have changed.
runtime.disconnect(classBeingRedefined);
}
return instrumenter.instrument(classfileBuffer);
} catch (final Exception ex) {
final IllegalClassFormatException wrapper = new IllegalClassFormatException(
format("Error while instrumenting class %s.", classname));
// Report this, as the exception is ignored by the JVM:
logger.logExeption(wrapper);
throw (IllegalClassFormatException) wrapper.initCause(ex);
}
}