独立的字节码验证器 [英] Stand-alone Bytecode Verifier

查看:112
本文介绍了独立的字节码验证器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的字节码检测项目中,我经常在VerifyErrors上偶然发现。但是,默认的java Verifier几乎没有提供关于哪条指令导致错误的信息(它只给出了方法和一条小消息)。是否有任何独立的字节码验证器,它提供了一些更高级的帮助来定位错误,至少是精确的指令位置?谢谢。

In my bytecode instrumentation project, I stumble frequently on VerifyErrors. However, the default java Verifier gives little information on which instruction resulted in the error (it only gives the method and a small message). Is there any stand-alone bytecode verifier which provides with a little more advanced help in locating the error, at least the precise instruction location? Thank you.

推荐答案

与任何涉及JVM字节码的项目一样,我首先检查一下 BCEL 有任何可能对您有用的东西。此外,也许 FindBugs 可能有所帮助 - 虽然我不确定它是否假设可验证的字节码开头或不。

As with any project involving JVM bytecode, I would first check to see whether the BCEL has anything that might be useful for you. Also, perhaps FindBugs may help - though I'm not sure whether it assumes verifiable bytecode to start with or not.

这篇关于独立的字节码验证器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆