I am now using ASM (Java bytecode instrumentation library). To retrieve the signature of given method, there is a field which is named “desc”. I guess this is an abbreviation of “descriptor”, but why isn’t it named as “signature”? Is there any difference between “descriptor” and “signature”?
I am now using ASM (Java bytecode instrumentation library). To retrieve the signature of
Share
Looking at the JVM spec section 4.3.3, for one thing the descriptor contains the return type – whereas that isn’t part of a the signature of a method.
but…
(Given this, it’s also not clear that the descriptor contains the name of the method…)