With asm how to explicitly declare a variable parameter

别等时光非礼了梦想. 提交于 2020-07-09 15:34:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!