From 7cc18ada023db5572993cca2a0a27cba14d0d603 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 5 May 1999 20:50:15 +0000 Subject: [PATCH] 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 --- jode/jode/decompiler/MethodAnalyzer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jode/jode/decompiler/MethodAnalyzer.java b/jode/jode/decompiler/MethodAnalyzer.java index 6bfdfca..9a21e35 100644 --- a/jode/jode/decompiler/MethodAnalyzer.java +++ b/jode/jode/decompiler/MethodAnalyzer.java @@ -118,7 +118,8 @@ public class MethodAnalyzer implements Analyzer { } if (isConstructor() - && classAnalyzer.getParent() instanceof ClassAnalyzer) { + && classAnalyzer.getParent() instanceof ClassAnalyzer + && !classAnalyzer.isStatic()) { ClassAnalyzer parent = (ClassAnalyzer) classAnalyzer.getParent(); LocalInfo clazz = code.getParamInfo(1); clazz.setType(Type.tClass(parent.getClazz()));