4

Would like to take a look at the byte code size of a method to see how far it is to the maximum length(64KB). How could I do that?

4

1 回答 1

5

一种选择是使用javap -c YourClassName- 这将向您显示每种方法的每条指令的字节偏移量。

或者,要以编程方式执行此操作,我强烈怀疑BCELASM会帮助您。

于 2013-09-10T20:48:18.037 回答