I'm using dirtyJOE to edit a method of a class file.The original class file had some encryption method calls and such.I've changed the byte-code of the method ldc (byte-code: 12 1E)to load true and return(byte-code: 12 1E)apparently, Java's verifier is upset with my changes and it complains of verification error:java.lang.VerifyError: Expecting a stack map frame in method [methodName] at offset 2at..at..I was wondering if there is a way to fool the jvm to think that there is a stack map frame?thank you 
VerifyError after editingg class file with dirtJOE
java;byte code
If the original class was not using StackMapTables, then there should be no problem, assuming you modified the bytecode correctly. Even if it is using them, it is usually possible to just remove them and revert to the old behavior. Assuming that the class does not use invokedynamic, you can just change the version back to 49.0 and delete the StackMapTable attributes.Unfortunately, version 51.0 mandates usage of StackMapTable, which is a pain to create when manually editing bytecode. If your class actually is making use of 51.0 features (i.e. invokedynamic) then your only option is to create the appropriate stack frames. In a simple case like this, you could do it by hand, but in general you're best off using a tool to generate the stack frames automatically.