问题
For a method:
String invoke(Object... args)
When I use asm ClassVisitor to read this method, I see:
([Ljava/lang/Object;)Ljava/lang/String;
Yes the parameter args become a object array, as it is to say: variable parameter is a syntactic sugar of array.
But when I use javap to show the bytecode:
public java.lang.String invoke(java.lang.Object...);
I'm confused why javap know the args is variable Object..., not array type Object[]
来源:https://stackoverflow.com/questions/61672612/with-asm-how-to-explicitly-declare-a-variable-parameter