From 03a84b8f4f4a1c97c36570c07f7a9fae8dc85a43 Mon Sep 17 00:00:00 2001 From: hoenicke Date: Mon, 29 Jan 2001 19:53:15 +0000 Subject: [PATCH] Some fixes. git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1290 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/obfuscator/modules/ConstantAnalyzer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jode/jode/obfuscator/modules/ConstantAnalyzer.java b/jode/jode/obfuscator/modules/ConstantAnalyzer.java index cd94dff..60adb34 100644 --- a/jode/jode/obfuscator/modules/ConstantAnalyzer.java +++ b/jode/jode/obfuscator/modules/ConstantAnalyzer.java @@ -1451,7 +1451,7 @@ public class ConstantAnalyzer implements Opcodes, CodeAnalyzer { ConstValue stacktop = info.getStack(size); Object fieldVal = fi.getConstant(); if (fieldVal == null) - fieldVal = runtime.getDefaultValue(ref.getType()); + fieldVal = TypeSignature.getDefaultValue(ref.getType()); if (stacktop.value == null ? fieldVal == null : stacktop.value.equals(fieldVal)) { stacktop.addConstantListener(new ConstantListener() { @@ -1654,7 +1654,7 @@ public class ConstantAnalyzer implements Opcodes, CodeAnalyzer { Instruction replacement) { switch(instr.getOpcode()) { case opc_jsr: - newCode.add(new ConstantInstruction(opc_ldc, null)); + newCode.add(Instruction.forOpcode(opc_ldc, (Object) null)); break; case opc_ldc: case opc_ldc2_w: @@ -1792,7 +1792,7 @@ public class ConstantAnalyzer implements Opcodes, CodeAnalyzer { Instruction instr = oldCode[idx]; ConstantInfo info = (ConstantInfo) constantInfos.remove(instr); if ((info.flags & CONSTANT) != 0) { - Instruction ldcInstr = new ConstantInstruction + Instruction ldcInstr = Instruction.forOpcode (info.constant instanceof Long || info.constant instanceof Double ? opc_ldc2_w : opc_ldc, info.constant);