Fix finally processor instruction comparison

master
Justin 4 years ago committed by Graham
parent a7f0e61c74
commit 0d2a413b2a
  1. 6
      src/org/jetbrains/java/decompiler/modules/decompiler/FinallyProcessor.java

@ -842,13 +842,17 @@ public class FinallyProcessor {
int secondOp = second.operand(i);
if (firstOp != secondOp) {
// a-load/store instructions
if (first.opcode == CodeConstants.opc_aload || first.opcode == CodeConstants.opc_astore) {
if (first.opcode == CodeConstants.opc_aload) {
for (int[] arr : lstStoreVars) {
if (arr[0] == firstOp && arr[1] == secondOp) {
return true;
}
}
}
else if (first.opcode == CodeConstants.opc_astore) {
lstStoreVars.add(new int[]{firstOp, secondOp});
return true;
}
return false;
}

Loading…
Cancel
Save