org.hotswap.agent.javassist.bytecode.CodeAttribute ca = methodInfo.getCodeAttribute();
org.hotswap.agent.javassist.bytecode.CodeIterator iterator = ca.iterator();
org.hotswap.agent.javassist.bytecode.Bytecode b = new org.hotswap.agent.javassist.bytecode.Bytecode(methodInfo.getConstPool(),
ca.getMaxStack(), ca.getMaxLocals());
b.setStackDepth(ca.getMaxStack());
Javac jv = new Javac(b, cc);
try {
jv.recordParams(getParameterTypes(), false);
jv.compileStmnt(src);
ca.setMaxStack(b.getMaxStack());
ca.setMaxLocals(b.getMaxLocals());
iterator.skipConstructor();
int pos = iterator.insertEx(b.get());
iterator.insert(b.getExceptionTable(), pos);