I get a compile error when Javassist is trying to compile a method replacement when the method is private.
method.instrument(new ExprEditor() {
public void edit(MethodCall m) throws CannotCompileException {
m.replace("$_ = $proceed($$);");
}
}
Is there a way I can get Javassist to compile invocations of private methods?