Check the validity of a .class file
Tom Rodriguez
Thomas.Rodriguez at Sun.COM
Thu Nov 20 13:46:17 PST 2008
I believe the ASM framework has a verifier as part of it's toolchain.
I don't know how good it is in terms complaining about exactly the
same things the JVM would but at a minimum it seems like it would be
able to sanity check the bytecodes.
tom
On Nov 20, 2008, at 12:27 PM, Mario Mendez-Lojo wrote:
> Hi guys,
>
> I'm manipulating bytecode using the Soot tool. However, sometimes
> I'll output bytecode that is incorrect (Soot is not able to detect
> this): local variables declared as of void type, for instance. The
> transformed, invalid class will make the JVM crash.
>
> The question is: is there any tool that can check whether a .class
> file is in the right format?
>
> Thanks!
More information about the hotspot-dev
mailing list