Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
メソッドのバイトコードサイズを調べて、最大長 (64KB) までどのくらい離れているかを確認したいと思います。どうすればそれができますか?
1 つのオプションは、使用するjavap -c YourClassNameことです。これにより、各メソッドの各命令のバイト オフセットが表示されます。
javap -c YourClassName
または、プログラムでこれを行うには、BCELまたはASMが役立つと強く思います。