Fix IDEA-247575 Parameter names aren't used in method body when debug info is absent
Sorry for the late reply.
I'm going to implement the fix the other way, because it amends the one made earlier that turned out to be incomplete. Have one question though: in your code, the MethodParameters attribute prevails over debug info. Are there any particular reasons for that? I'd rather make the other way around, because debug info is more extensive.
Sorry for the late reply.
I'm going to implement the fix the other way, because it amends the one made earlier that turned out to be incomplete. Have one question though: in your code, the
MethodParametersattribute prevails over debug info. Are there any particular reasons for that? I'd rather make the other way around, because debug info is more extensive.
Debug info is not required for program execution in general and therefore it is often stripped or trashed by ProGuard, obfuscators, etc.
In contrast, MethodParameters is designed to be available in runtime via java.lang.reflect.Parameter and stripping or trashing them may lead to program failure.
So MethodParameters looks more authoritative source for me.