CodeInfo loading moved to codeanalyzer

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@472 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 6895f071d3
commit ea628da246
  1. 12
      jode/jode/decompiler/MethodAnalyzer.java

@ -20,7 +20,6 @@
package jode.decompiler; package jode.decompiler;
import jode.bytecode.MethodInfo; import jode.bytecode.MethodInfo;
import jode.bytecode.AttributeInfo; import jode.bytecode.AttributeInfo;
import jode.bytecode.CodeInfo;
import jode.*; import jode.*;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
@ -53,16 +52,7 @@ public class MethodAnalyzer implements Analyzer {
AttributeInfo codeattr = minfo.findAttribute("Code"); AttributeInfo codeattr = minfo.findAttribute("Code");
if (codeattr != null) { if (codeattr != null) {
DataInputStream stream = new DataInputStream code = new CodeAnalyzer(this, codeattr, env);
(new ByteArrayInputStream(codeattr.getContents()));
CodeInfo codeinfo = new CodeInfo();
try {
codeinfo.read(classAnalyzer.getConstantPool(), stream);
code = new CodeAnalyzer(this, codeinfo, env);
} catch (IOException ex) {
ex.printStackTrace(Decompiler.err);
code = null;
}
} }
AttributeInfo excattr = minfo.findAttribute("Exceptions"); AttributeInfo excattr = minfo.findAttribute("Exceptions");

Loading…
Cancel
Save