give more hints if a runtime exception occurs

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@988 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 8bec672b88
commit 63c6dac7c8
  1. 6
      jode/jode/obfuscator/RemovePopAnalyzer.java

@ -20,6 +20,7 @@
package jode.obfuscator; package jode.obfuscator;
import jode.bytecode.*; import jode.bytecode.*;
import jode.AssertError; import jode.AssertError;
import jode.GlobalOptions;
import jode.type.MethodType; import jode.type.MethodType;
import jode.type.Type; import jode.type.Type;
@ -60,6 +61,7 @@ public class RemovePopAnalyzer implements CodeAnalyzer, Opcodes {
} }
public BytecodeInfo stripCode() { public BytecodeInfo stripCode() {
try {
int poppush[] = new int[2]; int poppush[] = new int[2];
Instruction instr = bytecode.getFirstInstr(); Instruction instr = bytecode.getFirstInstr();
while (instr != null) { while (instr != null) {
@ -279,6 +281,10 @@ public class RemovePopAnalyzer implements CodeAnalyzer, Opcodes {
continue; continue;
} }
} }
} catch (RuntimeException ex) {
ex.printStackTrace(GlobalOptions.err);
bytecode.dumpCode(GlobalOptions.err);
}
return bytecode; return bytecode;
} }
} }

Loading…
Cancel
Save