标签:
Because INVOKESPECIAL will consume value created by NEW from the operand stack, but you may need to actually use this value, so the reference is duplicated in advance.
方法调用指令invoke之类, 把栈顶的几个操作数当作参数的, 调用时都要pop
http://stackoverflow.com/questions/7282585/why-do-dup-when-creating-new-instance
标签:
原文地址:http://www.cnblogs.com/reddit/p/4679744.html