Commit a293c368 authored by Lukáš Marek's avatar Lukáš Marek

Goto in snippet exception handler moved to the try-catch block of the normal...

Goto in snippet exception handler moved to the try-catch block of the normal flow - fixes processor bug - don't ask :)
parent 84a71a24
......@@ -242,16 +242,16 @@ public class SnippetUnprocessedCode extends UnprocessedCode {
// ## }
// add try label at the end
LabelNode tryEnd = new LabelNode();
instructions.add(tryEnd);
// ## after normal flow
// normal flow should jump after handler
LabelNode handlerEnd = new LabelNode();
instructions.add(new JumpInsnNode(Opcodes.GOTO, handlerEnd));
// ## after normal flow
// add try label at the end
LabelNode tryEnd = new LabelNode();
instructions.add(tryEnd);
// ## after abnormal flow - exception handler
// add handler begin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment