bug fix: getLocalInfo called before lvt created.

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@80 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 92a21fac32
commit 38739cbbec
  1. 13
      jode/jode/decompiler/CodeAnalyzer.java

@ -58,6 +58,12 @@ public class CodeAnalyzer implements Analyzer {
method = ma;
env = e;
LocalVarsAttr attr =
(LocalVarsAttr) Attribute.get(bc, "LocalVariableTable");
if (attr != null)
lvt = new LocalVariableTable(bc.getMaxLocals(),
method.classAnalyzer, attr);
int paramCount = method.getParamCount();
param = new jode.flow.VariableSet();
for (int i=0; i<paramCount; i++)
@ -67,13 +73,6 @@ public class CodeAnalyzer implements Analyzer {
void readCode(CodeAttr bincode)
throws ClassFormatError
{
LocalVarsAttr attr =
(LocalVarsAttr) Attribute.get(bincode, "LocalVariableTable");
if (attr != null)
lvt = new LocalVariableTable(bincode.getMaxLocals(),
method.classAnalyzer, attr);
byte[] code = bincode.getCode();
FlowBlock[] instr = new FlowBlock[code.length];
int returnCount;

Loading…
Cancel
Save