You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CtClass[] parameterTypes = ctMethod.getParameterTypes();
CodeAttribute codeAttribute = methodInfo.getCodeAttribute();
LocalVariableAttribute attribute = (LocalVariableAttribute) codeAttribute.getAttribute(LocalVariableAttribute.tag);
int pos = Modifier.isStatic(ctMethod.getModifiers()) ? 0 : 1;
String variableTypeName = "";
for (int i = 0; i < parameterTypes.length; i++) {
## // sometime the variableName is wrong,so how can i get the right parameter name?
String variableName = attribute.variableName(i + pos);
variableTypeName = parameterTypes[i].getName();
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: