for (int i = 0; i < params.length; i++)
code.xload().setParam(i).setType(params[i]);
code.invokespecial().setMethod(type, meth.getName(), ret, params);
code.xreturn().setType(ret);
code.calculateMaxStack();
code.calculateMaxLocals();
}
/**
* Add a writeReplace implementation that serializes to a non-proxy type
* unless detached and this is a build-time generated class.