Instrumentor.addSyntheticAttribute(wmethod);
clazz.addMethod(wmethod);
// copy attribute signature
MethodInfo constructorInfo = constructor.getMethodInfo2();
SignatureAttribute attribute = (SignatureAttribute) constructorInfo.getAttribute(SignatureAttribute.tag);
if (attribute != null)
{
MethodInfo wrapperInfo = wmethod.getMethodInfo2();
@SuppressWarnings("unchecked")
HashMap map = new HashMap();
wrapperInfo.addAttribute(attribute.copy(wrapperInfo.getConstPool(), map));
}
// prepare ForWrapping
getWrapper().prepareForWrapping(constructor, CONSTRUCTOR_STATUS);
}