So I have a classes containing bytecode I need to debug ...
Using asmtools' jdis
gives me editable bytecode that I then can reassemble using jasm
.
Or at least I can MOST of the time.
For this particular class, though, I can disassemble it just fine. If I do nothing to the file and instead immediately try to reassemble it, jasm
will claim
Error: class file version expected
on 69 occasions, most of which seem to be at a local_map
or invokestatic
instruction, though there are also a few at istore
or iconst_1
instructions.
I'd say that's an unnecessary check gone haywire. After all, I do have a .class
file that runs just fine (except that it's giving me a ClassCastException
where there shouldn't be one, but that won't corrupt bytecode).
Can I somehow turn that off?