Editing a .class file directly, playing around with opcodes
- by echox
Hi, today I just tried to play a little bit around with the opcodes in compiled java class file. After inserting
iinc 1,1
the java virtual machine responds with:
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at…