allow the exception slot of class$ method to be some other slot

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@977 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 1aa6f4f10d
commit 0f95c6338a
  1. 5
      jode/jode/jvm/SyntheticAnalyzer.java

@ -86,6 +86,7 @@ public class SyntheticAnalyzer implements jode.bytecode.Opcodes {
if (excHandlers.length != 1)
return false;
int excSlot = -1;
Instruction instr = bytecode.getFirstInstr();
if (excHandlers[0].start != instr)
return false;
@ -94,7 +95,9 @@ public class SyntheticAnalyzer implements jode.bytecode.Opcodes {
return false;
if (i==0 && instr.localSlot != 0)
return false;
if ((i == 3 || i == 6) && instr.localSlot != 1)
if (i == 3)
excSlot = instr.localSlot;
if (i == 6 && instr.localSlot != excSlot)
return false;
if (i == 2 && excHandlers[0].end != instr)
return false;

Loading…
Cancel
Save