JBoss Community

$proceed($$) for private methods

created by Aaron Dixon in Javassist - View the full discussion

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?

Reply to this message by going to Community

Start a new discussion in Javassist at Community