fixed a bug

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1117 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
jochen 26 years ago
parent 6eb8ea7f59
commit d9f8ffd373
  1. 2
      jode/jode/jvm/Interpreter.java.in

@ -655,7 +655,7 @@ public class Interpreter implements Opcodes {
if (opcode == opc_invokespecial if (opcode == opc_invokespecial
&& ref.getName().equals("<init>") && ref.getName().equals("<init>")
&& stack[--stacktop].getNewObject() != null) { && stack[--stacktop].getNewObject() != null) {
NewObject newObj = stack[--stacktop].getNewObject(); NewObject newObj = stack[stacktop].getNewObject();
if (!newObj.getType().equals(ref.getClazz())) if (!newObj.getType().equals(ref.getClazz()))
throw new InterpreterException throw new InterpreterException
("constructor doesn't match new"); ("constructor doesn't match new");

Loading…
Cancel
Save