|
|
@ -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"); |
|
|
|