static classes don't get a this$0 in constructor

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@763 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 2af35f2528
commit 7cc18ada02
  1. 3
      jode/jode/decompiler/MethodAnalyzer.java

@ -118,7 +118,8 @@ public class MethodAnalyzer implements Analyzer {
} }
if (isConstructor() if (isConstructor()
&& classAnalyzer.getParent() instanceof ClassAnalyzer) { && classAnalyzer.getParent() instanceof ClassAnalyzer
&& !classAnalyzer.isStatic()) {
ClassAnalyzer parent = (ClassAnalyzer) classAnalyzer.getParent(); ClassAnalyzer parent = (ClassAnalyzer) classAnalyzer.getParent();
LocalInfo clazz = code.getParamInfo(1); LocalInfo clazz = code.getParamInfo(1);
clazz.setType(Type.tClass(parent.getClazz())); clazz.setType(Type.tClass(parent.getClazz()));

Loading…
Cancel
Save